fix indentation
This commit is contained in:
@@ -4,12 +4,12 @@
|
|||||||
|
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "https://kbcc-cuny.libcal.com/widget/hours/grid?iid=5570&format=json&weeks=1&systemTime=0",
|
url: "https://kbcc-cuny.libcal.com/widget/hours/grid?iid=5570&format=json&weeks=1&systemTime=0",
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
cache: false,
|
cache: false,
|
||||||
dataType: 'jsonp'
|
dataType: 'jsonp'
|
||||||
})
|
})
|
||||||
.done( function (data) {
|
.done( function (data) {
|
||||||
for (i = 0; i < data.locations.length; i++) {
|
for (i = 0; i < data.locations.length; i++) {
|
||||||
if (data.locations[i].lid === 16733) {
|
if (data.locations[i].lid === 16733) {
|
||||||
@@ -26,12 +26,12 @@ $(document).ready(function(){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.fail( function (xhr, status, error) {
|
.fail( function (xhr, status, error) {
|
||||||
if (typeof console != "undefined") {
|
if (typeof console != "undefined") {
|
||||||
console.error("LibCalJSON: HTTP-GET failure. Status: " + status + ", Error: " + error);
|
console.error("LibCalJSON: HTTP-GET failure. Status: " + status + ", Error: " + error);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user