Last active
June 26, 2018 12:00
-
-
Save owain68/868112a05a9b731d553412e90db21e11 to your computer and use it in GitHub Desktop.
Test loading a javascript file without an iframe
This file contains 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() { | |
$("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