Skip to content

Commit

Permalink
Demo separate css + cleaning renderers... (they will become XxxUtil.js)
Browse files Browse the repository at this point in the history
  • Loading branch information
x02210 committed Dec 21, 2014
1 parent d6be8fa commit 3e455c2
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 59 deletions.
6 changes: 4 additions & 2 deletions css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@
table.c_chord_info, table.c_chord_info *,
table.c_guitar_diagram, table.c_guitar_diagram *,
table.c_piano_diagram, table.c_piano_diagram * {
font-size:12px;
font-size:14px;
margin: 0;
padding: 0;
border: 0;
outline: none;
border-collapse: collapse;
border-spacing: 0;
vertical-align:baseline;
font-family: Arial;
}

Expand Down Expand Up @@ -49,7 +50,8 @@ table.c_guitar_diagram {
padding: 0;
outline: none;
margin: 0;
min-width: 18px;
width: 18px;
max-width: 18px;
height: 28px;
overflow: visible;
}
Expand Down
25 changes: 25 additions & 0 deletions css/get.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

@-viewport {
width: 240px;
}
.c_controls {
font-size: 15px;
}

.c_controls .b{
font-weight: bold;
cursor: pointer;
padding-left: 3px;
padding-right: 3px;
border: 1px solid gray;
border-radius: 3px;
}

.prev {
margin-left:15px;
}

select {
height:150px;
padding-right: 4px;
}
38 changes: 1 addition & 37 deletions pages/get.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type='text/javascript' src='../jschords-src.js'></script>
<link rel="stylesheet" type="text/css" href="../css/base.css" />
<link rel="stylesheet" type="text/css" href="../css/get.css" />



Expand Down Expand Up @@ -119,43 +120,6 @@
}

</script>
<style>
* {
font-size:12px;
margin: 0;
padding: 0;
border: 0;
outline: none;
border-collapse: collapse;
border-spacing: 0;
vertical-align:baseline;
}

@-viewport {
width: 240px;
}
.c_controls {
font-size: 15px;
}

.c_controls .b{
font-weight: bold;
cursor: pointer;
}

.prev {
margin-left:25px;
}

select {
height:150px;
padding-right: 4px;
}




</style>
</head>
<body onload='onLoad();'>
<div id='diagram' style="display:inline-block"></div>
Expand Down
9 changes: 1 addition & 8 deletions src/gui/IRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,5 @@ C.IRenderer = C.Class.extend({
})

C.IRenderer.byType = function(opts){
var t = C.Util.objValue(opts, "type", "html");

switch (t) {
case "html":
return new C.RendererHtml(opts);
default:
throw new Error({'C.IRenderer':'Renderer "'+t+'" is not known...'})
}

}
12 changes: 0 additions & 12 deletions src/gui/RendererHtml.js

This file was deleted.

0 comments on commit 3e455c2

Please sign in to comment.