Skip to content

Commit 4d24db6

Browse files
author
eugenp
committed
very early UI work
1 parent 21d09dd commit 4d24db6

5 files changed

Lines changed: 18 additions & 44 deletions

File tree

‎ui/src/main/webapp/app.html‎

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
<!DOCTYPE html>
22
<html>
3-
<head>
4-
<title>jQuery+RequireJS Sample Page</title>
5-
<!-- This is a special version of jQuery with RequireJS built-in -->
6-
<script data-main="scripts/main" src="scripts/require-jquery.js"></script>
7-
</head>
8-
<body>
9-
<h1>jQuery+RequireJS Sample Page</h1>
10-
<p>Look at source or inspect the DOM to see how it works.</p>
11-
</body>
3+
<head>
4+
<title>jQuery+RequireJS Sample Page</title>
5+
<script data-main="scripts/main.js" src="scripts/require-jquery.js"></script>
6+
</head>
7+
<body>
8+
<h1>jQuery+RequireJS Sample Page</h1>
9+
<p>Look at source or inspect the DOM to see how it works.</p>
10+
</body>
1211
</html>

‎ui/src/main/webapp/index.html‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@
66

77
<link href="css/sec.css" media="all" rel="stylesheet" type="text/css" />
88

9-
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script>
9+
<!-- <script type="text/javascript" src="https://github.com//ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script> -->
1010
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/backbone.js/0.9.2/backbone-min.js"></script>
1111
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.2/underscore-min.js"></script>
1212
<script src="js/json2.js"></script>
13-
<script src="js/sec.js"></script>
13+
<!-- <script src="js/sec.js"></script> -->
14+
<script data-main="scripts/main.js" src="scripts/require-jquery.js"></script>
15+
1416
</head>
1517

1618
<body>

‎ui/src/main/webapp/js/sec.js‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
// Load the application once the DOM is ready, using `jQuery.ready`:
22
$(function() {
33

4-
var Item = Backbone.Model.extend({
5-
defaults : {
6-
price : 35,
7-
photo : "http://www.placedog.com/100/100"
8-
}
9-
});
10-
114
// Todo Model
125
// ----------
136

‎ui/src/main/webapp/scripts/app.build.js‎

Lines changed: 0 additions & 20 deletions
This file was deleted.

‎ui/src/main/webapp/scripts/main.js‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
require(["jquery", "jquery.alpha", "jquery.beta"], function($) {
2-
//the jquery.alpha.js and jquery.beta.js plugins have been loaded.
3-
$(function() {
4-
$('body').alpha().beta();
5-
});
6-
});
1+
require([ "jquery", "scripts/jquery.alpha.js", "scripts/jquery.beta.js" ],
2+
function($) {
3+
$(function() {
4+
$('body').alpha().beta();
5+
});
6+
});

0 commit comments

Comments
 (0)