Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
crapdice committed Jan 6, 2019
1 parent 3837b66 commit bdb2efd
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,26 @@
$(document).ready(function(){

$('select').on('change', function() {
alert( this.value );
});



var jqxhr = $.getJSON("codebeautify.json", function() {
console.log( "success" );
})

var status = ( this.value );

var jqxhr = $.getJSON("codebeautify.json", function() {

console.log( "success" );
})

.done(function(data) {
.done(function(data) {

$.each( data.instances, function( i, item ) {
$.each( data.instances, function( i, item ) {

if(item.state =="active") {
if(item.state == status) {

$( "<li />" ).html("<a href='http://www." + item.domain + "' target='_blank' rel='nofollow'>" + item.title + "</a> - " + item.state).appendTo( "#websites" );
}
});
})
$( "<li />" ).html("<a href='http://www." + item.domain + "' target='_blank' rel='nofollow'>" + item.title + "</a> - " + item.state).appendTo( "#websites" );
}
});
})

});

})();
</script>
Expand Down

0 comments on commit bdb2efd

Please sign in to comment.