Skip to content

Commit 080fb94

Browse files
Ajusts themes.html to the new project structure
1 parent 2cc0d64 commit 080fb94

File tree

2 files changed

+17
-20
lines changed

2 files changed

+17
-20
lines changed

bower.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"name": "jquery-ui-month-picker",
3-
"version": "3.0.0",
43
"homepage": "https://github.com/KidSysco/jquery-ui-month-picker",
54
"authors": [
65
"Ryan Segura <kidsysco@gmail.com>",

test/themes.html

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@
44

55
<head>
66
<title>jQuery UI Month Picker tests</title>
7-
<!--flick smoothness-->
87
<link rel="stylesheet" type="text/css" href="../bower_components/jquery-ui/themes/smoothness/jquery-ui.css">
9-
10-
<link rel="stylesheet" type="text/css" href="../bower_components/jquery-ui/
11-
themes/smoothness/jquery.ui.theme.css">
12-
<link rel="stylesheet" type="text/css" href="../css/MonthPicker.css" />
8+
9+
<link rel="stylesheet" type="text/css" href="../bower_components/jquery-ui/themes/smoothness/jquery.ui.theme.css">
10+
<link rel="stylesheet" type="text/css" href="../src/MonthPicker.css" />
1311
<link rel="stylesheet" type="text/css" href="test.css" />
1412
<link rel="stylesheet" href="../bower_components/qunit/qunit/qunit.css" />
1513

@@ -20,29 +18,29 @@
2018
<script src="../bower_components/qunit/qunit/qunit.js"></script>
2119
<script>
2220
if (typeof $ === 'undefined' || !$.ui || typeof QUnit === 'undefnied') {
23-
var message =
24-
"Welcome to the jQuery UI Month Picker project.\n" +
25-
"\n" +
21+
var message =
22+
"Welcome to the jQuery UI Month Picker project.\n" +
23+
"\n" +
2624
"jQuery UI and QUnit are required for testing.\n" +
27-
"Please download node.js, 'cd ./jquery-ui-month-picker' and run 'npm install'.\n" +
28-
"\n" +
25+
"Please download node.js, 'cd ./jquery-ui-month-picker' and run 'npm install'.\n" +
26+
"\n" +
2927
"Tests can be ran from the command line using the 'grunt test' command.";
30-
28+
3129
if (alert) {
3230
alert(message);
3331
}
34-
32+
3533
throw message;
3634
}
3735
</script>
38-
<script src="jquery.maskedinput.min.js"></script>
39-
<script src="../MonthPicker.js"></script>
36+
<script src="../bower_components/jquery.maskedinput/dist/jquery.maskedinput.min.js"></script>
37+
<script src="../src/MonthPicker.js"></script>
4038
<script>
4139
// TODO: Refactor!
4240
$(function() {
4341
// output of: ls | tr '\n' ' ' > themes.txt
4442
var themes = 'black-tie blitzer cupertino dark-hive dot-luv eggplant excite-bike flick hot-sneaks humanity le-frog mint-choc overcast pepper-grinder redmond smoothness south-street start sunny swanky-purse trontastic ui-darkness ui-lightness vader'.split(" ");
45-
43+
4644
var sel = $("select").change(function() {
4745
var selVal = $(this).val();
4846
var replaceWith = 'themes/' + selVal + '/';
@@ -51,16 +49,16 @@
5149
$(this).attr("href", href.replace(/themes\/.+\//, replaceWith));
5250
});
5351
});
54-
52+
5553
$.each(themes, function(i, theme) {
5654
sel.append($("<option>" + theme + "</option>").prop('selected', theme == 'smoothness'));
5755
});
58-
56+
5957
var invert = false;
6058
$(invertCb).click(function() {
6159
$(document.body).css('background-color', (invert = !invert) ? '#555':'#fff');
6260
});
63-
61+
6462
$("div, #field").MonthPicker();
6563
});
6664
</script>
@@ -75,4 +73,4 @@
7573
Example: <br><input id='field'></input>
7674
</body>
7775

78-
</html>
76+
</html>

0 commit comments

Comments
 (0)