Commit 85d89a05 authored by dje's avatar dje
Browse files

maj des ui/js/html de demo_lorem

parent d340e197
Loading
Loading
Loading
Loading
+3 −3
Changes for tools/demo/demo_edition/fragments/accueil.frag.html: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -7,19 +7,19 @@
 <div class="container">
  <div class="row">
    <div id="r1" class="col-sm-3">
      <h2 onclick="gotoDemoPage1()">MaX</h2>
      <a href="./demo_lorem.xml/c1">MaX</a>
      <div class="demo_text">
        Notes, corrections, ...
      </div>
    </div>
    <div class="col-sm-1"></div>
    <div id="r2" class="col-sm-3">
      <h2 onclick="gotoDemoPage2()">Démo</h2>
      <a href="./demo_lorem.xml/c2.1">Démo</a>
      <div class="demo_text">Apparat critique ...</div>
    </div>
    <div class="col-sm-1"></div>
    <div id="r3" class="col-sm-3">
      <h2 onclick="gotoDemoPage3()">TEI</h2>
      <a href="./demo_lorem.xml/c3.1">TEI</a>
      <div class="demo_text">Images ...</div>
    </div>
  </div>
+5 −1
Changes for tools/demo/demo_edition/ui/css/demo_lorem.css: 5 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -49,8 +49,11 @@
  color: #888;
}

.col-sm-3 h2{
.col-sm-3 a, .col-sm-3 a:visited{
  cursor:pointer;
  color: #888;
  font-size:2.5rem;
  text-decoration:none;
}
.demo_text{
  display:none;
@@ -139,3 +142,4 @@ div.hit > div, div.hit > div p{
div.hit blockquote, div.hit .appel_note_marge{
  display: none;
}
+1 −13
Changes for tools/demo/demo_edition/ui/js/demo_lorem.js: 1 added line, 13 removed lines.
Original line number Diff line number Diff line

$(document).ready(function(){
  
  $(".row h2").hover(
  $(".row a").hover(
  function() {
    $( this ).siblings('.demo_text').show();
  }, function() {
@@ -10,15 +10,3 @@ $(document).ready(function(){
);
  
});

function gotoDemoPage1(){
  window.location.href= MAX.getBaseURL() + "demo_lorem/demo_lorem.xml/c1";
}

function gotoDemoPage2(){
  window.location.href= MAX.getBaseURL() + "demo_lorem/demo_lorem_2.xml/c2.1";
}

function gotoDemoPage3(){
  window.location.href= MAX.getBaseURL() + "demo_lorem/demo_lorem_3.xml/c3.1";
}
 No newline at end of file