-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
256 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
node_modules | ||
.tmp | ||
bin | ||
.env | ||
*.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<!DOCTYPE html><html><head><meta charset="utf-8"><title>Team Tool Box</title><meta name="viewport" content="width=device-width,initial-scale=1"><script src="scripts/vendors.js"></script><script src="scripts/scripts.js"></script><link rel="stylesheet" href="styles/main.css"></head><body><!--[if lt IE 10]> <p class="browserupgrade"><strong>Ohlala, so sorry!</strong>, developping apps for old browser is so painfull and time consuming that i choosed not to support them ... Please <a href="http://browsehappy.com/">upgrade your browser</a> .</p> <![endif]--><header><div class="brand"><a href="#home">Team Tool Box</a> <span>Build your teams randomly!</span></div><ul class="topnav" id="menu"><li><a href="#home">Home</a></li><li><a href="#team-list">Team List</a></li><li><a href="#archive-list">Archives</a></li><li><a href="#about">About</a></li><li class="icon"><a href="javascript:void(0);" onclick="menuHandler()">☰</a></li></ul></header><section id="home" src="templates/home.html" default></section><section id="team-list" src="templates/team-list.html"></section><section id="team-list-details" src="templates/team-list-details.html"></section><section id="team-add" src="templates/team-add.html"></section><section id="team-member-add" src="templates/team-member-add.html"></section><section id="team-member-details" src="templates/team-member-details.html"></section><section id="about" src="templates/about.html"></section><section id="archive-save" src="templates/archive-save.html"></section><section id="archive-list" src="templates/archive-list.html"></section><section id="archive-details" src="templates/archive-details.html"></section><div class="alert-info"><span onclick="this.parentElement.style.display='none'" class="alert-closebtn">×</span><p class="alert-msg"></p></div><script>var menu = document.getElementById("menu"); | ||
var links = document.querySelectorAll('header ul li a'); | ||
|
||
|
||
function menuHandler() { | ||
if (menu.className === "topnav") { | ||
menu.className += " responsive"; | ||
} else { | ||
menu.className = "topnav"; | ||
} | ||
} | ||
|
||
//handle click on nav a, make it selected style | ||
function setSelected(){ | ||
/* | ||
for(i=0;i<links.length;i++) { | ||
links[i].classList.remove('selected'); | ||
} | ||
this.classList.add('selected'); | ||
*/ | ||
//toggle menu when a menu item is clicked | ||
if (this.parentNode.className!=='icon'){ | ||
menu.className = "topnav"; | ||
} | ||
|
||
//make sure every alert box is hidden | ||
document.querySelector('.alert-info').style.display = 'none'; | ||
|
||
} | ||
|
||
for(i=0;i<links.length;i++) { | ||
links[i].addEventListener('click',setSelected); | ||
} | ||
document.querySelector('div.brand a').onclick = setSelected; | ||
|
||
|
||
app.start(); | ||
|
||
//document.writeln(localStorage.getItem('ttb'));</script></body></html> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.