Skip to content

Instantly share code, notes, and snippets.

@owain68
Last active June 26, 2018 12:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save owain68/868112a05a9b731d553412e90db21e11 to your computer and use it in GitHub Desktop.
Save owain68/868112a05a9b731d553412e90db21e11 to your computer and use it in GitHub Desktop.
Test loading a javascript file without an iframe
$(document).ready(function() {
$("head").append("<link id='jquery-confirm-css' href='https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.0/jquery-confirm.min.css' type='text/css' rel='stylesheet' />");
var clickCount = 0;
$('#bracket').click(function(){
clickCount ++;
$.alert({
title: 'You clicked!',
content: 'Added 1 more',
});
$('#bracket').append("<p>clickCount is now " + clickCount + "</p>");
}
)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment