Plugin Directory

Changeset 2249140


Ignore:
Timestamp:
02/24/2020 07:41:03 AM (6 years ago)
Author:
applixir
Message:

fixed issue with cookie

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applixir/trunk/js/applixir-ad.js

    r2249112 r2249140  
    1414                },
    1515                eventHandler: function(){
    16                     console.log( document.getElementById('applixir-ad-btn') !=null)
     16
    1717                    if( document.getElementById('applixir-ad-btn') !== null ){
    1818                    var viewportOffset = document.getElementById('applixir-ad-btn').getBoundingClientRect();
     
    4848                adStatusCallback: function(status){
    4949                    if (status){
    50                         console.log('Applixir status: ' + status);
     50
    5151                        if( status == 'ad-watched'){
    5252                            //
     
    5858
    5959                setCookie: function (cname, cvalue, exdays) {
     60                    if( exdays == '0' ){
     61                        exdays=365;
     62                    }
    6063                    var d = new Date();
    6164                    d.setTime(d.getTime() + (exdays*24*60*60*1000));
Note: See TracChangeset for help on using the changeset viewer.