Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #15 from hoopyfrood/master

jquery loading is now protocol-agnostic
commit 0ea9c45277f254c6b5dc6f109d40fd30c63ceb19 2 parents 42c123e + 478a407
@briancray authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 index.php
View
6 index.php
@@ -8,8 +8,8 @@
<label for="longurl">URL to shorten</label> <input type="text" name="longurl" id="longurl"> <input type="submit" value="Shorten">
</form>
</form>
-<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
-<script type="text/javascript">
+<script src="//ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
+<script>
$(function () {
$('#shortener').submit(function () {
$.ajax({data: {longurl: $('#longurl').val()}, url: 'shorten.php', complete: function (XMLHttpRequest, textStatus) {
@@ -20,4 +20,4 @@
});
</script>
</body>
-</html>
+</html>
Please sign in to comment.
Something went wrong with that request. Please try again.