Kevin van Zonneveld пре 9 година
родитељ
комит
322cfc0c1d
1 измењених фајлова са 14 додато и 1 уклоњено
  1. 14 1
      build/index.html

+ 14 - 1
build/index.html

@@ -1,9 +1,22 @@
 <html>
   <head>
-
+    <title>
+      If you see this, JavaScript threw an error
+    </title>
   </head>
   <body>
+    <h1>
+      If you see this, JavaScript threw an error
+    </h1>
 
   </body>
   <script src="./transloadit-js-client.js"></script>
+  <script>
+    var branch  = location.pathname.split('/')[2];
+    var elTitle = document.querySelector('title');
+    var elH1    = document.querySelector('h1');
+    var title   = 'You are reviewing the latest push of branch: ' + branch;
+    elTitle.innerHTML = title;
+    elH1.innerHTML    = title;
+  </script>
 </html>