OSDN Git Service

歌詞表示の途中まで
[praisedb/praisedb.git] / app / views / songs / show.html.erb
diff --git a/app/views/songs/show.html.erb b/app/views/songs/show.html.erb
new file mode 100644 (file)
index 0000000..01ab05d
--- /dev/null
@@ -0,0 +1,33 @@
+<%- content_for :head do -%>
+  <%= stylesheet_link_tag "show_song" %>
+  <%= javascript_include_tag "show_song" %>
+<script type="text/javascript">
+Event.observe(window, 'load', function() {
+  init(<%= @song.font_size_name %>);
+});
+</script>
+<%- end -%>
+<div id="fixed"> 
+ <pre id="smallWindow"><%= render :partial => 'fixed' %></pre>
+ <table id="panel">
+ <tr>
+   <th rowspan="2">文字の大きさの調整&nbsp;</th>
+   <td>
+     <button onclick="javascript:increase();">▲</button>
+   </td>
+ </tr>
+   <td>
+     <button onclick="javascript:decrease();">▼</button>
+   </td>
+ </tr>
+ <tr>
+  <th colspan="2" id="b">
+    <a href="preview.php?id=<?= $id ?>" target="edit">&nbsp;編集画面を開く&nbsp;</a>
+    <!-- <button onclick="javascript:openEditWindow()">OPEN</button> -->
+  </th>
+ </tr>
+ </table>
+</div> 
+<div id="scroll"> 
+ <pre id="song"><%= render :partial => 'scroll' %></pre>
+</div>