concordia search php

This commit is contained in:
rjawor 2017-02-21 12:06:29 +01:00
parent 21cd29538e
commit bd3b265421

View File

@ -30,7 +30,7 @@ $data = json_decode($response);
<div id="content"> <div id="content">
<div id="result"> <div id="result">
<pre><?php print_r($data);?></pre> <pre><?php print_r($data);?></pre>
<div id="result-score">Concordia score: <b><?= int($data->result->bestOverlayScore)*100 ?>%</b></div> <div id="result-score">Concordia score: <b><?= round($data->result->bestOverlayScore)*100 ?>%</b></div>
<?php <?php
/* /*
res += '<div id="phrase-selection">Phrase search mode:&nbsp;<img id="phrase-off-icon" src="../images/switchOff.png" alt="enter phrase search mode" onclick="togglePhraseSearchMode()" title="search for phrases"/><img class="hidden" id="phrase-on-icon" src="../images/switchOn.png" alt="cancel phrase search" onclick="togglePhraseSearchMode()" title="cancel phrase search"/><span id="phrase-prompt" class="hidden">Select continuous phrase: </span></div>'; res += '<div id="phrase-selection">Phrase search mode:&nbsp;<img id="phrase-off-icon" src="../images/switchOff.png" alt="enter phrase search mode" onclick="togglePhraseSearchMode()" title="search for phrases"/><img class="hidden" id="phrase-on-icon" src="../images/switchOn.png" alt="cancel phrase search" onclick="togglePhraseSearchMode()" title="cancel phrase search"/><span id="phrase-prompt" class="hidden">Select continuous phrase: </span></div>';