This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * jQuery v1.9.1 included | |
| */ | |
| (function($) { | |
| $.QueryString = (function(a) { | |
| if (a == "") return {}; | |
| var b = {}; | |
| for (var i = 0; i < a.length; ++i) { | |
| var p = a[i].split('='); | |
| if (p.length != 2) continue; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| red = 255 | |
| green = 0 | |
| stepSize = 5 | |
| array = [] | |
| while green < 255 | |
| green += stepSize; | |
| if green > 255 | |
| green = 255 | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <link href='https://fonts.googleapis.com/css?family=Dosis:400,700' rel='stylesheet' type='text/css'> | |
| <link href="https://s3.amazonaws.com/adsauxfiles/state_of_matter/state_of_matter.css" rel="stylesheet" type='text/css'> | |
| </head> | |
| <body> | |
| <div> | |
| <div class="parent"> | |
| <div class="container"> | |
| <a href="about:close"><div class="x">x</div></a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <link href='https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz' rel='stylesheet' type='text/css'> | |
| <link href="http://www.tobiaskahn.com/seeds/toucan.css" rel="stylesheet" type='text/css'> | |
| </head> | |
| <body> | |
| <div> | |
| <div class="parent"> | |
| <div class="container"> | |
| <a href="about:close"><div class="x">x</div></a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <link href='https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz' rel='stylesheet' type='text/css'> | |
| <link href="http://www.tobiaskahn.com/seeds/toucan.css" rel="stylesheet" type='text/css'> | |
| </head> | |
| <body> | |
| <div> | |
| <div class="parent"> | |
| <div class="container"> | |
| <a href="about:close"><div class="x">x</div></a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| function inArray(item, array){ | |
| var count=array.length; | |
| for(var i=0;i<count;i++) { | |
| if (array[i] === item) {return true;} | |
| } | |
| return false; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $( document ).ready(function() { | |
| var cityData = 0 | |
| $.get("/cities.json", function(data) { | |
| cityData = data | |
| }); | |
| function initMap() { | |
| var map = new google.maps.Map(document.getElementById('map'), { | |
| center: {lat: 10.209, lng: 108}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var loopContent = | |
| '<div id="iw-container">' + | |
| '<div class="iw-title">' + city.name + " " + city.city_review_average + '</div>' + | |
| '<div class="iw-content">' + | |
| '<div class="iw-subTitle">Review</div>' + | |
| city["city_reviews"].forEach(function(review) { | |
| review.description | |
| }); + | |
| '</div>' + | |
| '</div>'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Trying to hit this route: contest_photo PATCH /contests/:contest_id/photos/:id(.:format) photos#update | |
| $('.submit-button').click( function() { | |
| $.ajax({ | |
| url: 'contests/1/photos/1', | |
| type: 'PATCH', | |
| success: function(result) { | |
| // Do I even need this?? | |
| } | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $('.submit-button').click( function() { | |
| $.ajax({ | |
| url: 'contests/1/photos/1/edit', | |
| type: 'PATCH', | |
| success: function(result) { | |
| // Do I even need this?? | |
| } | |
| }); | |
| }); |
NewerOlder