Showing results for tags 'control'. - Extra Life Community Hub Jump to content

Search the Community

Showing results for tags 'control'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Categories

  • Extra Life News
    • Extra Life Updates
    • Best Practices
    • Community Content
    • Why I Extra Life
    • Fundraising
    • Contests
  • Gaming News
  • Features
  • Podcast

Discussions

  • Extra Life Discussions
    • General Extra Life Discussion
    • Local Extra Lifers
    • Fundraising Ideas
    • Live Streaming Tips & Tricks
    • Official Extra Life Stream Team Discussion
    • Extra Life JSON Code Discussion & Sharing
    • Extra Life United
    • Extra Life Q & A
  • Articles & Extra Life Announcements
    • Announcements
  • Official Extra Life Guilds
    • Guild information and Discussion
    • Canada
    • Northeastern US
    • Southeastern US
    • Central US
    • Western US
  • Gaming Discussions
  • Other Stuff
  • Denver Extra Life Guild's Recent Posts

Calendars

  • Extra Life Community Calendar
  • Extra Life Stream Team
  • Akron Guild
  • Albany Guild
  • Albuquerque Guild
  • Anchorage Guild
  • Atlanta Guild
  • Austin Guild
  • Bakersfield Guild
  • Baltimore Guild
  • Birmingham Guild
  • Boston Guild
  • Burlington Guild
  • Buffalo Guild
  • Calgary, AB Guild
  • Morgantown Guild
  • Charlottesville Guild
  • Chicago Guild
  • Cincinnati Guild
  • Cleveland Guild
  • Columbia, MO Guild
  • Columbus, OH Guild
  • Dallas Guild
  • Dayton Guild
  • Denver Guild
  • Des Moines Guild
  • Detroit Guild
  • Edmonton, AB Guild
  • Fargo-Valley City Guild
  • Fresno Guild
  • Ft. Worth Guild
  • Gainesville-Tallahassee Guild
  • Grand Rapids Guild
  • Halifax, NS Guild
  • Hamilton, ON Guild
  • Hartford Guild
  • Hershey Guild
  • Hudson Valley Guild
  • Houston Guild
  • Indianapolis Guild
  • Jacksonville Guild
  • Kansas City Guild
  • Knoxville Guild
  • Lansing Guild
  • London, ON Guild
  • Los Angeles Guild
  • Milwaukee / Madison Guild
  • Minneapolis / Twin Cities Guild
  • Montreal / Quebec City Guild
  • Nashville Guild
  • Newark Guild
  • NYC & Long Island Guild
  • Oakland / San Francisco Guild
  • Omaha Guild
  • Orange County Guild
  • Orlando Guild
  • Ottawa, ON Guild
  • Philadelphia Guild
  • Phoenix Guild
  • Pittsburgh Guild
  • Portland, OR Guild
  • Portland, ME Guild
  • Raleigh-Durham Guild
  • Richmond Guild
  • Sacramento Guild
  • Salt Lake City Guild
  • San Antonio Guild
  • San Diego Guild
  • San Juan, PR Guild
  • Saskatchewan Guild
  • Seattle Guild
  • Spokane Guild
  • Springfield-Champaign, IL Guild
  • Springfield, MA Guild
  • St. Louis Guild
  • Syracuse Guild
  • Tampa / St. Petersburg Guild
  • Toronto, ON Guild
  • Vancouver, BC Guild
  • Washington DC Guild
  • Winnipeg, MB Guild
  • Denver Extra Life Guild's Events
  • Extra Life Akron's Events

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Hospital


Location


Why I "Extra Life"


Interests


Twitter


Instagram


Twitch


Mixer


Discord


Blizzard Battletag


Nintendo ID


PSN ID


Steam


Origin


Xbox Gamertag

Found 1 result

  1. Hello everyone. I am getting the following errors after an amount of time. That time can vary, it usually takes a few good minutes to come up. https://gyazo.com/7e81b98065b5558d8697f90711c65331 sorry i accidentally hit the quote button twice & couldn't figure out how to remove it. What i've read on the internet is that it's an addition that Extra life would have to make on their end. Something similar to this, if you're using apache: Header set Access-Control-Allow-Origin "*" AllowOverride all Order allow,deny Allow from all My site is http://extralifealerts.com & all my code can be seen by looking at the source code. I don't have anything hidden. Decided to post my code. I two .html files that it happens to, both are almost exact mirrors of each other when it comes to grabbing the json data. I am assuming if i can fix it in one then i can fix it in the other, assuming this error is a problem on my end. <html> <head> <title>Extra-Life Alerts</title> <meta charset="utf-8"> <link href="controller_blue.ico" rel="shortcut icon" type="image/x-icon"> <link href="teamAlert.css" rel="stylesheet"> </head> <body> <?php header('Access-Control-Allow-Origin: *'); ?> <script type="text/javascript" src="./javascript/jQuery/jquery-2.1.4.js"></script> <script type="text/javascript" src="./javascript/jQuery-url-parser/2.3.1/purl.js"></script> <script type="text/javascript" src="./javascript/dropzone/dropzone.js"></script> <!--<script type="text/javascript" src="./javascript/feedback/jquery.feedback-1.2.0.js"></script>--> <script type="text/javascript" src="//cdn.jsdelivr.net/jquery.marquee/1.3.1/jquery.marquee.min.js"></script> <!--<script type="text/javascript" src="./javascript/json-parse/json_parse.js"></script>--> <script> var currentDonation; var priorDonation = "0"; var getText; function init() { $.ajaxPrefilter(function( options ) { options.async = true; options.cache = false; options.crossDomain = true; }); // Parse setup parameters. var id = $.url().param('id'); var audio = $.url().param('audio'); var playAudio = document.createElement('audio'); var marquee = $.url().param('marquee'); var xmlhttp = new XMLHttpRequest(); //var url = "http://extralifealerts.com/tempTeamDonations.txt"; var url = "http://www.extra-life.org/index.cfm?fuseaction=donordrive.team&teamID="+id+"&format=json"; function startXMLHTTP() { xmlhttp.open("GET", url, true); /*xmlhttp.onreadystatechange = function () { getText = xmlhttp.responseText };*/ /*$.ajax({ url: url, type: "GET", async: true, dataType: "json", }).done(function(data){ //console.log("IN AJAX Data is "+data); currentDonation = data; });*/ $.ajax({ url: url, type: "GET", async: true, dataType: "json", jsonp: true, crossDomain: true, success: function (data) { //console.log("IN AJAX Data is "+data); currentDonation = data; } }); //currentDonation = JSON.parse(getText); //console.log("after function currentDonation: " + currentDonation); xmlhttp.onreadystatechange = function () { if ((xmlhttp.readyState == '4' && ( xmlhttp.status == '200' || xmlhttp.status == '204' ) ) && ( ( currentDonation.totalRaisedAmount != "0" || currentDonation.totalRaisedAmount >= priorDonation ) )) { if(currentDonation.totalRaisedAmount == priorDonation) { return true; } else { extraLifeAlert(xmlhttp.responseText); //console.log("Executing the extralifealert function"); } } }; xmlhttp.send(); /* Debugging steps*/ //console.log(xmlhttp.onreadystatechange); //console.log("TEST BEGINNING Amount: Current: " + currentDonation + " | Prior: " + priorDonation); } setInterval(startXMLHTTP,5000); function extraLifeAlert(response) { var teamName = JSON.parse(response); var teamGoal = JSON.parse(response); var raisedAmount = JSON.parse(response); document.documentElement.style.overflow = 'hidden'; // firefox, chrome document.body.scroll = "no"; // ie only if (teamName.name) { $('#posts').find('.teamName').text(teamName.name); } if (teamGoal.fundraisingGoal) { $('#posts').find('.fundraisingGoal').text(teamGoal.fundraisingGoal); } if (raisedAmount.totalRaisedAmount) { $('#posts').find('.totalRaisedAmount').text("$" + raisedAmount.totalRaisedAmount); } if(priorDonation == "0"){ setTimeout(function () { $(document.getElementById('posts')).fadeIn(1000); }, 1000); } if (currentDonation.totalRaisedAmount > priorDonation) { setTimeout( function() { $('#posts').find('.totalRaisedAmount').fadeOut(1000); }, 0); setTimeout(function() { $('#posts').find('.totalRaisedAmount').fadeIn(1000); }, 2000); setTimeout(function(){ if (audio) { playAudio.setAttribute('src', './audio/'+ audio); playAudio.loop = false; playAudio.load(); playAudio.play(); } }, 1000); } priorDonation = currentDonation.totalRaisedAmount; /** Debugging steps */ //console.log("TEST END Amount: Current: " + currentDonation.totalRaisedAmount + " | Prior: " + priorDonation); } } setInterval(init, 5000); </script> <div id="posts" class="entireMessage" style="display:none"> <div id="teamGoal"> <span class="teamName"></span><br> Goal: $<span class="fundraisingGoal"></span><br> Total Raised: <span class="totalRaisedAmount"></span> </div> </div> <script> /*$('.entireMessage').marquee({ duration: 8000, gap: 50, delayBeforeStart: 8000, direction: 'left', duplicated: true });*/ </script> <script> var effect = $.url().param('effect'); var font = $.url().param('font'); var headID = document.getElementsByTagName('head')[0]; var link = document.createElement('link'); link.rel = 'stylesheet'; link.type = 'text/css'; link.href = 'http://fonts.googleapis.com/css?family='+font+'&effect='+effect; headID.appendChild(link); document.getElementById('teamGoal').className = 'font-effect-'+effect; document.getElementById('teamGoal').style.fontFamily = font; </script> </body> </html>
×
×
  • Create New...