Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

appsgeyser problem

Options
  • 24-07-2012 1:56pm
    #1
    Registered Users Posts: 139 ✭✭


    Hi Is anyone here familiar with appsgeyser? I'm trying to paste html code into the creator and when I publish it the java code embedded into it does not work.
    Here is the piece of code..

    <h2> <span class="mw-headline" id="Countdown_To_Peace_Meditation"> Countdown To Peace Meditation </span></h2>
    <p><!-- this should work -->
    <script type="text/javascript">
    // Here’s where the Javascript starts
    var med1 = "975028";
    var med2 = "980428";
    var med3 = "1066828";var nMonth = "August";// Converting date difference from seconds to actual time
    function convert_to_time(secs)
    {
    secs = parseInt(secs);
    hh = secs / 3600;
    hh = parseInt(hh);
    mmt = secs - (hh * 3600);
    mm = mmt / 60;
    mm = parseInt(mm);
    ss = mmt - (mm * 60);
    //day go down one
    dd = hh / 24;
    dd = parseInt(dd);
    if (hh > 23)
    {
    hh = hh - (dd * 24);
    } else { dd = 0; }
    if (ss < 10) { ss = "0"+ss; }
    if (mm < 10) { mm = "0"+mm; }
    if (hh < 10) { hh = "0"+hh; }
    if (dd == 0) { return ("<b>"+hh+":"+mm+":"+ss+"</b>"); }
    else {
    if (dd > 1) { return ("<b>"+dd+"</b> Days <b>"+hh+"</b> Hours <b>"+mm+"</b> Minutes <b>"+ss+"</b> Seconds"); }
    else { return ("<b>"+dd+"</b> Day <b>"+hh+"</b> Hours <b>"+mm+"</b> Minutes <b>"+ss+"</b> Seconds"); }
    }
    }
    // Our function that will do the actual countdown
    function do_cd()
    {
    var _this = this;
    this.target = '';
    this.med = '';
    this.marquee = 'n';
    this.doNext = function(){
    /**/ if (1*(_this.med) < 1*(-1600))
    {
    // change text
    document.getElementById(_this.target).innerHTML = "This Meditation has been Completed!";
    }
    else if (_this.med < 0 )
    {
    // change text
    //document.getElementById(_this.target).innerHTML = "Meditation in Progress";
    if(_this.marquee == 'n'){
    document.getElementById(_this.target).innerHTML = '<img src="/w/skins/common/images/inline_peace.png" border="0" alt="peace" style="vertical-align:bottom;"/><marquee behavior="scroll" direction="left" scrollamount="2" style="height:20px; line-height:20px; margin:0; padding:0; color:#FFFFFF; background:#000; width:300px; vertical-align:top;">Saalome gam naan ben uurda, gan njjber asaala hesporoona!</marquee><img src="/w/skins/common/images/inline_peace.png" border="0" alt="peace" style="vertical-align:bottom;"/>';
    _this.marquee = 'y';
    }
    }
    else
    {
    document.getElementById(_this.target).innerHTML = convert_to_time(_this.med);
    setTimeout(function(){_this.doNext()}, 1000);
    }
    _this.med = _this.med - 1;
    }
    }
    do_cd.prototype.m1 = function(){
    this.target = 'medTime1';
    this.med = "975028";
    this.doNext();
    }
    do_cd.prototype.m2 = function(){
    this.target = 'medTime2';
    this.med = "980428";
    this.doNext();
    }
    do_cd.prototype.m3 = function(){
    this.target = 'medTime3';
    this.med = "1066828";
    this.doNext();
    }
    </script>
    </p>
    <div id="med_peace_times_box">
    <div class="med_wrapper">
    <div class="med_incon">
    <div id="med_sat1" class="med_output">Saturday's <strong>First</strong> <a href="http://www.futureofmankind.co.uk/Billy_Meier/Peace_meditation&quot; target="_self"><strong>Peace Meditation</strong></a> is scheduled for August 4, and will start in (<span class="med_itation" id='medTime1'>Meditation</span>) 5:30 PM UTC</div>
    <div id="med_sat2" class="med_output">Saturday's <strong>Second</strong> peace meditation is scheduled for August 4, and will start in (<span class="med_itation" id='medTime2'>Meditation</span>) 7:00 PM UTC</div><br/>
    </div>
    <div class="med_incon">
    <div id="med_sun" class="med_output">Sunday's <strong>First</strong> peace meditation is scheduled for August 5, and will start in (<span class="med_itation" id='medTime3'>Meditation</span>) 7:00 PM UTC</div>
    </div>
    </div>
    </div>
    <p><script language="javascript">
    //meditation start
    var countdown500e7b6428ee4 = new do_cd();
    countdown500e7b6428ee4.m1();
    var countdown500e7b64292cd = new do_cd();
    countdown500e7b64292cd.m2();
    var countdown500e7b64296b5 = new do_cd();
    countdown500e7b64296b5.m3();
    </script>


    Any help greatly appreciated. Thanks


Comments

  • Registered Users Posts: 139 ✭✭tonybodhran


    Never mind figured it out..


  • Registered Users Posts: 124 ✭✭shanefitz360


    You should post your solution, in case someone with a similar problem finds this thread


  • Registered Users Posts: 139 ✭✭tonybodhran


    The problem was that I was trying to edit the html in the appsgeyser editor, this was causing the editor to add some extra code to the existing code which was preventing the java from working, the solution was to edit the code before putting it into appgeyser.


Advertisement