mirror of
https://github.com/lovasoa/whitebophir
synced 2024-09-20 14:21:54 +00:00
Remove dependency to font-awesome
Use Unicode icons instead
This commit is contained in:
parent
63b4bb067a
commit
e944fc3946
7 changed files with 7 additions and 8 deletions
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
);
|
||||
},
|
||||
|
|
|
@ -70,7 +70,7 @@
|
|||
|
||||
Tools.add({ //The new tool
|
||||
"name" : "Eraser",
|
||||
"icon" : "fa-eraser",
|
||||
"icon" : "❌",
|
||||
"listeners" : {
|
||||
"press" : startErasing,
|
||||
"move" : erase,
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
|
||||
Tools.add({ //The new tool
|
||||
"name" : "Hand",
|
||||
"icon" : "fa-arrows",
|
||||
"icon" : "✋",
|
||||
"listeners" : {
|
||||
"press" : press,
|
||||
"move" : move,
|
||||
|
|
|
@ -119,7 +119,7 @@
|
|||
|
||||
Tools.add({ //The new tool
|
||||
"name" : "Straight line",
|
||||
"icon" : "fa-arrows-h",
|
||||
"icon" : "☇",
|
||||
"listeners" : {
|
||||
"press" : startLine,
|
||||
"move" : continueLine,
|
||||
|
|
|
@ -159,7 +159,7 @@
|
|||
|
||||
Tools.add({ //The new tool
|
||||
"name" : "Pencil",
|
||||
"icon" : "fa-pencil",
|
||||
"icon" : "✏",
|
||||
"listeners" : {
|
||||
"press" : startLine,
|
||||
"move" : continueLine,
|
||||
|
|
|
@ -130,7 +130,7 @@
|
|||
|
||||
Tools.add({ //The new tool
|
||||
"name" : "Text",
|
||||
"icon" : "fa-font",
|
||||
"icon" : "T",
|
||||
"listeners" : {
|
||||
"press" : clickHandler,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue