Commit 253c3f1f authored by Maxime Lefrançois's avatar Maxime Lefrançois
Browse files

modified search.html

parent 82d41ccb
Loading
Loading
Loading
Loading
+46 −58
Original line number Diff line number Diff line
<!DOCTYPE html>
<html lang="en-GB" dir="ltr">

<head>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta charset="utf-8" />
  <meta name="author" content="Maxime Lefrançois" />
  <meta name="generator" content="Ontogit" />
  <title>SAREF - portal</title>

  <title>SAREF Portal</title>
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
  <link href="static/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
  <link href="static/media/gantry5/assets/css/font-awesome.min.css" rel="stylesheet" />
@@ -19,14 +15,15 @@
  <link href="static/media/jui/css/icomoon.css" rel="stylesheet" />
  <link href="static/templates/g5_helium/custom/css-compiled/helium-joomla_19.css" rel="stylesheet" />
  <link href="static/templates/g5_helium/custom/css-compiled/custom_19.css" rel="stylesheet" />
  
  <link href="static/jqtree/jqtree.css" rel="stylesheet">
  <script src="static/templates/g5_helium/js/jui/jquery.min.js?06eedc97766b70aa1fa0e80231495faa"></script>
  <script src="static/media/jui/js/jquery-noconflict.js?06eedc97766b70aa1fa0e80231495faa"></script>
  <script src="static/media/jui/js/jquery-migrate.min.js?06eedc97766b70aa1fa0e80231495faa"></script>
  <script src="static/media/system/js/caption.js?06eedc97766b70aa1fa0e80231495faa"></script>
  <script src="static/media/jui/js/bootstrap.min.js?06eedc97766b70aa1fa0e80231495faa"></script>
  <script src="static/templates/g5_helium/js/juitabs.js"></script>
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>

  <script>
    jQuery(window).on('load', function() {
      new JCaption('img.caption');
@@ -38,10 +35,7 @@
        <script type="text/javascript" src="static/media/gantry5/assets/js/matchmedia.polyfill.js"></script>
        <![endif]-->

</head>


<body class="gantry g-helium-style site com_content view-article no-layout no-task dir-ltr itemid-217 outline-19 g-offcanvas-left g-default g-style-preset1">
</head><body class="gantry g-helium-style site com_content view-article no-layout no-task dir-ltr itemid-217 outline-19 g-offcanvas-left g-default g-style-preset1">
  <div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">
    <div class="g-grid">
      <div class="g-block size-100">
@@ -58,19 +52,19 @@
        <div class="g-grid">
          <div class="g-block size-17">
            <div class="g-content g-particle">
              <a href="" title="" rel="home" class="g-logo g-logo-helium">
              <a href="https://www.etsi.org/" title="" rel="home" class="g-logo g-logo-helium">
                <img src="static/images/logo-l.png" alt="" />
              </a>
            </div>
          </div>
          <div class="g-block size-50">
          <div class="g-block size-65">
            <div class="g-content g-particle">
              <nav class="g-main-nav" role="navigation" data-g-hover-expand="true">
                <ul class="g-toplevel">


                  <li class="g-menu-item g-menu-item-type-component g-menu-item-217 active g-standard  ">
                    <a class="g-menu-item-container" href="index.html">
                    <a class="g-menu-item-container" href="/index.html">
                      <span class="g-menu-item-content">
                        <span class="g-menu-item-title">Home</span>
                      </span>
@@ -79,22 +73,22 @@


                  <li class="g-menu-item g-menu-item-type-component g-menu-item-242 g-standard  ">
                    <a class="g-menu-item-container" href="core/">
                    <a class="g-menu-item-container" href="/core/">
                      <span class="g-menu-item-content">
                        <span class="g-menu-item-title">SAREF core</span>
                      </span>
                    </a>
                  </li>
                  <li class="g-menu-item g-menu-item-type-component g-menu-item-242 g-standard  ">
                    <a class="g-menu-item-container" href="resources.html">
                    <a class="g-menu-item-container" href="/extensions.html">
                      <span class="g-menu-item-content">
                        <span class="g-menu-item-title">Resources</span>
                        <span class="g-menu-item-title">Extensions</span>
                      </span>
                    </a>
                  </li>

                  <li class="g-menu-item g-menu-item-type-component g-menu-item-242 g-standard  ">
                    <a class="g-menu-item-container" href="https://forge.etsi.org/gitlab/SAREF/">
                    <a class="g-menu-item-container" href="/sources/">
                      <span class="g-menu-item-content">
                        <span class="g-menu-item-title">Participate</span>
                      </span>
@@ -102,26 +96,24 @@
                  </li>

                  <li class="g-menu-item g-menu-item-type-component g-menu-item-242 g-standard  ">
                    <a class="g-menu-item-container" href="">
                    <a class="g-menu-item-container" href="https://www.etsi.org/committee/smartm2m">
                      <span class="g-menu-item-content">
                        <span class="g-menu-item-title">About us</span>
                        <span class="g-menu-item-title">SmartM2M</span>
                      </span>
                    </a>
                  </li>

                  <li class="g-menu-item g-menu-item-type-component g-menu-item-242 g-standard">
                    <a class="g-menu-item-container" href="https://www.etsi.org/committee/smartm2m">
                      <span class="g-menu-item-content">
                        <span class="g-menu-item-title">SmartM2M</span>
                      </span>
                    </a>
                    <form method="GET" action="search.html">
                      <input class="form-control" id="q" name="q" placeholder="&#x1F50E; ex., device"/>
                    </form>
                  </li>

                </ul>
              </nav>
            </div>
          </div>
          <div class="g-block g-social-header size-33">
          <div class="g-block g-social-header size-17">
            <div class="g-content g-particle">
              <div class="g-social ">
                <a target="_blank" href="https://twitter.com/ETSI_STANDARDS" title="" aria-label="">
@@ -139,30 +131,27 @@
      </div>
    </section> 

<section id="introduction" class="g-wrapper">
  <section id="introduction" class="g-wrapper">
    <header id="g-header">
      <div class="g-container">

      <section id="introduction" class="g-wrapper">
        <div class="g-container">
          <form name="inputForm" method="GET" action="./search.html">
            <p>
               <em>Filter by title or domain:</em>
               <input class="form-control ui-autocomplete-input" name="q" id="tags" placeholder="Search for a SAREF term" />
             </p>
            <input type="submit" value="Search">
        <div class="g-block size-100">
          <div class="g-content g-particle">
            <h1>Smart Applications REFerence Ontology, and extensions</h1>
            <p><strong>Official ETSI portal for SAREF</strong><br>This portal contains pointers to the SAREF ontologies and SAREF-related work items</p>
            <form method="GET" action="search.html">
              <input class="form-control" id="q" name="q" placeholder="&#x1F50E; ex., device"/>
            </form>
          </div>
      </section>
      <h1 id="infoH1">
        <a id="user-content-smart-applications-reference-ontology-and-extensions" class="anchor" href="#smart-applications-reference-ontology-and-extensions" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>
        </div>
      </div>
    </header>

      </h1>
      <div id="resultsDIV">



<section class="g-wrapper">
  <div class="g-container" id="results">
  </div>
</div>
</section>


<footer id="g-footer">
@@ -176,14 +165,14 @@
        </div>
      </div>
      <div class="g-block size-20">
        <div class="g-content g-particle">© ETSI 2019<br /><a style="font-size:10pt; color:white" href="https://www.etsi.org/">Visit ETSI website for more information on Terms & Conditions.</a></div>
        <div class="g-content g-particle">© ETSI 2020<br /><a style="font-size:10pt; color:white" href="https://www.etsi.org/">Visit ETSI website for more information on Terms & Conditions.</a></div>
      </div>
      <div class="g-block g-horizontalmenu size-40">
        <div class="g-content g-particle">
          <nav class="g-main-nav" role="navigation" data-g-hover-expand="true">
            <ul class="g-toplevel">
              <li class="g-menu-item g-menu-item-type-component g-menu-item-245 g-standard  ">
                <a class="g-menu-item-container" href="index.php/legal-matters">
                <a class="g-menu-item-container" href="https://forge.etsi.org/index.php/legal-matters">
                  <span class="g-menu-item-content">
                    <span class="g-menu-item-title">Legal matters</span>
                  </span>
@@ -215,8 +204,8 @@
</div>

<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" </script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>

<script>
$(document).ready(function(){
@@ -225,8 +214,10 @@ $(document).ready(function(){
    return;
  }
   var q = urlParams.get('q')
   var ds="http://localhost:8080/api/search?q="+q;
   $("<h1> The results for "+q+":</h1>").appendTo("#infoH1");
   var ds="/api/search?q="+q;
   if(q) {
     $("<h1> The results for <em>"+q+"</em>:</h1><div id=\"resultsDIV\"></div>").appendTo("#results");
   }
   $.getJSON(ds, function(data){
     if(data.count==0){
       $("<div> <h2>Sorry there is no result</h2> </div>").appendTo("#resultsDIV");
@@ -238,12 +229,9 @@ $(document).ready(function(){
          $("<div> score: "+value.score+"</div>").appendTo("#resultsDIV");
          $("<div> offset: "+data["offset"]+"</div>").appendTo("#resultsDIV");
          $("<div> count: "+data["count"]+"</div>").appendTo("#resultsDIV");

      });
    }

   });

});
</script>