Remove dependency to font-awesome

Use Unicode icons instead
This commit is contained in:
Ophir LOJKINE 2015-07-15 12:01:57 +02:00
parent 63b4bb067a
commit e944fc3946
7 changed files with 7 additions and 8 deletions

View file

@ -7,7 +7,6 @@
<link rel="icon" type="image/png" href="favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" type="text/css" href="board.css" />
<link rel="stylesheet" type="text/css" href="font-awesome/css/font-awesome.min.css" />
<script type="text/javascript" src="/socket.io/socket.io.js"></script>
</head>
@ -29,7 +28,7 @@
<div id="menuItems">
<h3>Tools</h3>
<ul id="tools">
<li class="tool"><i class="tool-icon fa"></i><span class="tool-name">Tool template</span></li>
<li class="tool"><span class="tool-icon"></span><span class="tool-name">Tool template</span></li>
</ul>
<h3>Configuration</h3>

View file

@ -50,7 +50,7 @@ Tools.HTML = {
elem.addEventListener("click", callback);
elem.id = "toolID-"+toolName;
elem.getElementsByClassName("tool-name")[0].textContent = toolName;
elem.getElementsByClassName("tool-icon")[0].className += " " + toolIcon;
elem.getElementsByClassName("tool-icon")[0].textContent = toolIcon;
}
);
},

View file

@ -70,7 +70,7 @@
Tools.add({ //The new tool
"name" : "Eraser",
"icon" : "fa-eraser",
"icon" : "",
"listeners" : {
"press" : startErasing,
"move" : erase,

View file

@ -46,7 +46,7 @@
Tools.add({ //The new tool
"name" : "Hand",
"icon" : "fa-arrows",
"icon" : "",
"listeners" : {
"press" : press,
"move" : move,

View file

@ -119,7 +119,7 @@
Tools.add({ //The new tool
"name" : "Straight line",
"icon" : "fa-arrows-h",
"icon" : "",
"listeners" : {
"press" : startLine,
"move" : continueLine,

View file

@ -159,7 +159,7 @@
Tools.add({ //The new tool
"name" : "Pencil",
"icon" : "fa-pencil",
"icon" : "",
"listeners" : {
"press" : startLine,
"move" : continueLine,

View file

@ -130,7 +130,7 @@
Tools.add({ //The new tool
"name" : "Text",
"icon" : "fa-font",
"icon" : "T",
"listeners" : {
"press" : clickHandler,
},