瀏覽代碼

Changes in demo application to work with relative paths.

Signed-off-by: Sebastian Haas <sebastian@haas.tech>
Sebastian Haas 8 年之前
父節點
當前提交
c56ec5a112
共有 3 個文件被更改,包括 15 次插入8 次删除
  1. 1 1
      Gruntfile.js
  2. 1 2
      demo/demo.js
  3. 13 5
      demo/index.html

+ 1 - 1
Gruntfile.js

@@ -165,7 +165,7 @@ module.exports = function (grunt) {
         // http-server
         'http-server': {
             'demo': {
-                root: 'demo',
+                root: 'build/demo',
                 port: 8000,
                 host: '0.0.0.0',
                 showDir : true,

+ 1 - 2
demo/demo.js

@@ -4,7 +4,7 @@
     // The MusicSheet object
     var sheet,
     // The folder of the demo files
-        folder = "/test/data/",
+        folder = "sheets/",
     // The available demos
         demos = {
             "M. Clementi - Sonatina Op.36 No.1 Pt.1": "MuzioClementi_SonatinaOpus36No1_Part1",
@@ -16,7 +16,6 @@
             "C. Gounod - Meditation": "CharlesGounod_Meditation",
             "J.S. Bach - Praeludium In C Dur BWV846 1": "JohannSebastianBach_PraeludiumInCDur_BWV846_1",
             "J. Haydn - Concertante Cello": "JosephHaydn_ConcertanteCello",
-            "P. Koen - Fugue in G Major": "PeterKoen-FugueInGMajor",
             "S. Joplin - Elite Syncopations": "ScottJoplin_EliteSyncopations",
             "S. Joplin - The Entertainer": "ScottJoplin_The_Entertainer"
         },

+ 13 - 5
demo/index.html

@@ -1,13 +1,21 @@
-<!DOCTYPE html>
-<html>
+<!doctype html>
+<html lang="en">
   <head>
-    <title>OSMD Demo</title>
+    <meta charset="utf-8">
+
+    <title>OpenSheetMusicDisplay Demo</title>
+    <meta name="description" content="A showcase for OpenSheetMusicDisplay.">
+    <meta name="author" content="OpenSheetMusicDisplay contributors">
+
+    <!-- Include opensheetmusicdisplay -->
     <script src="osmd-demo.js"></script>
+
+    <!-- Include code and styles for this demo -->
     <script src="demo.js"></script>
     <link href="demo.css" media="all" rel="stylesheet" />
   </head>
   <body>
-    <h1>Open Sheet Music Display Demo</h1>
+    <h1>OpenSheetMusicDisplay Demo</h1>
     <table cellspacing="0">
       <tr>
         <td class="bignum">1</td>
@@ -16,7 +24,7 @@
             Select a sample from the list below...
           </p>
           <select id="select"></select>
-          <p>... or just drag'n'drop your MusicXML file on this page.</p>
+          <p>... or just drop your MusicXML file on this page.</p>
         </td>
       </tr>
       <tr>