Skip to content

Instantly share code, notes, and snippets.

@maxim75
Created August 6, 2015 01:58
Show Gist options
  • Save maxim75/8e5fbe7dfaeccb51ea82 to your computer and use it in GitHub Desktop.
Save maxim75/8e5fbe7dfaeccb51ea82 to your computer and use it in GitHub Desktop.
HTML5 start template
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="http://code.jquery.com/ui/1.11.3/themes/smoothness/jquery-ui.css" rel="stylesheet" type="text/css" />
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="//code.jquery.com/qunit/qunit-1.17.0.css" rel="stylesheet" type="text/css" />
<style>
/* CSS here */
</style>
</head>
<body>
<div data-bind="text: time"></div>
</body>
<script src="//cdn.jsdelivr.net/jquery/2.1.4/jquery.min.js"></script>
<script src="//code.jquery.com/ui/1.11.3/jquery-ui.js"></script>
<script src="//cdn.jsdelivr.net/underscorejs/1.8.2/underscore-min.js"></script>
<script src="//cdn.jsdelivr.net/knockout/3.3.0/knockout.js"></script>
<script src="//cdn.jsdelivr.net/knockout.validation/1.0.2/knockout.validation.min.js"></script>
<script src="//code.jquery.com/qunit/qunit-1.17.0.js"></script>
<script src="http://sinonjs.org/releases/sinon-1.12.2.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
<script>
var Vm = function() {
var self = this;
self.time = ko.observable($.datepicker.formatDate('d/M/yy', new Date()));
};
var vm = new Vm();
ko.applyBindings(vm, $("body")[0]);
</script>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment