Last change
on this file since 259 was
259,
checked in by tjcschipper, 13 years ago
|
Metro interface, selector werkt bijna! (Alleen move to dashboard nog niet, rest is prima (en de icons zijn lelijk).
|
File size:
881 bytes
|
Line | |
---|
1 | $(function() { |
---|
2 | //Switchpage |
---|
3 | |
---|
4 | mockup = { |
---|
5 | api: { |
---|
6 | clickTile: function(thisElement, url) { |
---|
7 | // clear self |
---|
8 | while (thisElement.firstChild) { |
---|
9 | thisElement.removeChild(thisElement.firstChild); |
---|
10 | } |
---|
11 | // clear frame |
---|
12 | $(".basePanel").children().remove(); |
---|
13 | mockup.api.loadPage(url); |
---|
14 | |
---|
15 | }, |
---|
16 | loadPage: function(name) { |
---|
17 | $.get("pages/"+name+".html", function(responseText, textStatus, XMLHttpRequest) { |
---|
18 | $(".basePanel").append(responseText); |
---|
19 | $.getScript("pages/"+name+".js", function(responseText, textStatus, XMLHttpRequest){ |
---|
20 | debugger; |
---|
21 | }) |
---|
22 | }); |
---|
23 | |
---|
24 | } |
---|
25 | |
---|
26 | } |
---|
27 | |
---|
28 | |
---|
29 | } |
---|
30 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.