Skip to content
search.html 11.2 KiB
Newer Older
Omar ALQAWASMEH's avatar
Omar ALQAWASMEH committed
<!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>

  <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" />
  <link href="static/media/gantry5/engines/nucleus/css-compiled/nucleus.css" rel="stylesheet" />
  <link href="static/templates/g5_helium/custom/css-compiled/helium_19.css" rel="stylesheet" />
  <link href="static/media/gantry5/assets/css/bootstrap-gantry.css" rel="stylesheet" />
  <link href="static/media/gantry5/engines/nucleus/css-compiled/joomla.css" rel="stylesheet" />
  <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" />
  <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');
    });
  </script>
  <!--[if (gte IE 8)&(lte IE 9)]>
        <script type="text/javascript" src="static/media/gantry5/assets/js/html5shiv-printshiv.min.js"></script>
        <link rel="stylesheet" href="media/gantry5/engines/nucleus/css/nucleus-ie9.css" type="text/css"/>
        <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">
  <div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">
    <div class="g-grid">
      <div class="g-block size-100">
        <div class="g-content g-particle">
          <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>
        </div>
      </div>
    </div>
  </div>
  <div id="g-page-surround">
    <div class="g-offcanvas-hide g-offcanvas-toggle" data-offcanvas-toggle aria-controls="g-offcanvas" aria-expanded="false"><i class="fa fa-fw fa-bars"></i></div>
    <section id="g-navigation">
      <div class="g-container">
        <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">
                <img src="static/images/logo-l.png" alt="" />
              </a>
            </div>
          </div>
          <div class="g-block size-50">
            <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">
                      <span class="g-menu-item-content">
                        <span class="g-menu-item-title">Home</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="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">
                      <span class="g-menu-item-content">
                        <span class="g-menu-item-title">Resources</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/">
                      <span class="g-menu-item-content">
                        <span class="g-menu-item-title">Participate</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="">
                      <span class="g-menu-item-content">
                        <span class="g-menu-item-title">About us</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>
                  </li>

                </ul>
              </nav>
            </div>
          </div>
          <div class="g-block g-social-header size-33">
            <div class="g-content g-particle">
              <div class="g-social ">
                <a target="_blank" href="https://twitter.com/ETSI_STANDARDS" title="" aria-label="">
                  <span class="fa fa-twitter fa-fw"></span> <span class="g-social-text"></span> </a>
                <a target="_blank" href="https://www.facebook.com/etsi.standards" title="" aria-label="">
                  <span class="fa fa-facebook-official"></span> <span class="g-social-text"></span> </a>
                <a target="_blank" href="https://www.linkedin.com/company/etsi?trk=biz-companies-cym" title="" aria-label="">
                  <span class="fa fa-linkedin-square"></span> <span class="g-social-text"></span> </a>
                <a target="_blank" href="https://www.youtube.com/user/ETSIstandards" title="" aria-label="">
                  <span class="fa fa-youtube-play"></span> <span class="g-social-text"></span> </a>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>

<section id="introduction" class="g-wrapper">
  <section id="introduction" class="g-wrapper">
    <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">
          </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>

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


      </div>
</div>


<footer id="g-footer">
  <div class="g-container">
    <div class="g-grid">
      <div class="g-block size-15">
        <div class="g-content g-particle">
          <a href="https://www.etsi.org/" title="" class="g-logo g-logo-helium">
            <img src="https://forge.etsi.org/files/ETSI-Logo_BW_S_Office1.png" alt="" />
          </a>
        </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>
      <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">
                  <span class="g-menu-item-content">
                    <span class="g-menu-item-title">Legal matters</span>
                  </span>
                </a>
              </li>
              <li class="g-menu-item g-menu-item-type-url g-menu-item-247 g-standard  ">
                <a class="g-menu-item-container" href="mailto:cti_support@etsi.org?subject=[SAREF]">
                  <span class="g-menu-item-content">
                    <span class="g-menu-item-title">Contact &amp; Support</span>
                  </span>
                </a>
              </li>
            </ul>
          </nav>
        </div>
      </div>
      <div class="g-block size-25">
        <div class="g-content g-particle">
          <div class="">
            <div class="g-totop">
              <a href="#" id="g-totop" rel="nofollow">Back to top <i class="fa fa-chevron-up fa-fw"></i></a>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</footer>
</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>
$(document).ready(function(){
  var urlParams = new URLSearchParams(window.location.search);
  if(!urlParams.has('q')) {
    return;
  }
   var q = urlParams.get('q')
   var ds="http://localhost:8080/api/search?q="+q;
   $("<h1> The results for "+q+":</h1>").appendTo("#infoH1");
   $.getJSON(ds, function(data){
     if(data.count==0){
       $("<div> <h2>Sorry there is no result</h2> </div>").appendTo("#resultsDIV");
     }
     else{
      $.each(data["results"], function(key, value){
          $("<div> <a href ="+value.uri+">"+value.label+"</a></div>").appendTo("#resultsDIV");
          $("<div>"+value.comment+"</div>").appendTo("#resultsDIV");
          $("<div> score: "+value.score+"</div>").appendTo("#resultsDIV");
          $("<div> offset: "+data["offset"]+"</div>").appendTo("#resultsDIV");
          $("<div> count: "+data["count"]+"</div>").appendTo("#resultsDIV");

      });
    }

   });

});
</script>

</body>

</html>