Skip to content

Commit

Permalink
Merge branch 'release/v0.3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
sdorra committed Jul 4, 2017
2 parents 10ccba0 + 3718ccc commit 87e1765
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# netbeans temp & private files
target/
# MacOS X Files
.DS_Store
._.DS_Store
Expand All @@ -16,3 +15,7 @@ Desktop DF
# web components
node_modules/
.tmp
# idea files
.idea
# target
/target
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "warp-menu",
"version": "0.2.0",
"version": "0.3.0",
"repository": {
"type": "git",
"url": "https://github.com/cloudogu/warp-menu"
},
"devDependencies": {
"ces-theme": "git+ssh://git@github.com/cloudogu/ces-theme.git",
"ces-theme": "https://github.com/cloudogu/ces-theme.git",
"del": "^2.2.0",
"gulp": "^3.8.7",
"gulp-autoprefixer": "^3.1.0",
Expand Down
35 changes: 34 additions & 1 deletion src/warp.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ function initWarpMenu(categories){
ul.appendChild(li);
}


var h3 = document.createElement('h3');
h3.rel = id;
addClass(h3, 'warpbtn-link');
Expand All @@ -115,6 +116,38 @@ function initWarpMenu(categories){
nav.appendChild(ul);
}

// fixed about page - entry
var ul = document.createElement('ul');
var id = "warpc.test";
ul.id = id;
var collapsed = false;
if (lss){
collapsed = localStorage.getItem(id + '.collapsed');
}
if (collapsed){
addClass(ul, 'warpmenu-collapsed');
}
var li = document.createElement('li');
var a = document.createElement('a');
a.target = '_top';
a.href = createLink("/info/index.html");
a.innerHTML = "About Cloudogu";
addClass(li, 'warpmenu-link');
addClass(li, 'warpmenu-link-top');
li.appendChild(a);
ul.appendChild(li);
var h3 = document.createElement('h3');
h3.rel = id;
addClass(h3, 'warpbtn-link');
if (collapsed){
addClass(h3, 'warpmenu-category-open');
}
h3.onclick = toggleCategory;
h3.innerHTML = "Information";
nav.appendChild(h3);

nav.appendChild(ul);

var div = document.createElement('div');
addClass(div, 'warpbtn');
var btn = document.createElement('a');
Expand Down Expand Up @@ -169,4 +202,4 @@ if (!hasClass(body, 'warpmenu-push') && (self === top || window.pmaversion)){
// load model
asyncCounter++;
ajax('/warp/menu.json', loaded);
}
}

0 comments on commit 87e1765

Please sign in to comment.