Commit 752154f0 authored by yPhil's avatar yPhil
Browse files

Finding terms OK, now on to opening the corresponding tab

parent 5fb26376
......@@ -618,11 +618,11 @@ select {
fieldset {
color: var(--color-ui-pri);
background: var(--color-ui-qua) !important;
margin: 0 0 0.2em 0;
padding-bottom: 0.4em;
padding-left: 0.4em;
padding-right: 0.4em;
width: available;
/* margin: 0 0 0.2em 0; */
/* padding-bottom: 0.4em; */
/* padding-left: 0.4em; */
/* padding-right: 0.4em; */
/* width: available; */
}
legend {
......@@ -630,6 +630,7 @@ legend {
}
.menu legend {
margin-left: 6px;
font-size: 9pt;
}
......@@ -660,6 +661,16 @@ nav#sideMenu,
border-color: var(--color-ui-qua);
}
nav#sideMenu .ui-button,
nav#sideMenu #sync-box {
margin-bottom: 0.3em;
}
.results {
background: #de1919;
color: white;
}
nav#sideMenu:hover {
scrollbar-color: var(--color-ui-sec) var(--color-ui-qua);
}
......
......@@ -64,6 +64,17 @@ var PTL = (function() {
$(this).children('input').css({'opacity': '0'});
});
$('#ptlSearch input').on('keyup', function () {
console.log('plop!: %s (%s)');
var v = $(this).val();
$('.results').removeClass('results');
$('a.feed-link').each(function () {
if (v != '' && $(this).text().search(new RegExp(v,'gi')) != -1) {
$(this).addClass('results');
}
});
});
PTL.sync.attachWidget();
$('button').button();
......
......@@ -162,6 +162,39 @@
<div id="sideMenu" class="plip">
<legend class="ui-corner-top hover">
<i class="icon-right rotate unfold"></i>
<span class="translate"
data-content="Language">Language
</span>
</legend>
<fieldset class="menuForm ui-widget ui-widget-content ui-corner-all">
<select id="language"
class="unique translate"
name="language"
data-title="Language"
title="Language">
<option id="optionEnglish"
class="translate"
data-content="English"
selected="selected"
value="en"></option>
<option id="optionFrench"
class="translate"
data-content="Français"
value="fr"></option>
<option id="optionJapanese"
class="translate"
data-content="日本語"
value="ja"></option>
<option id="optionSpanish"
class="translate"
data-content="Español"
value="es"></option>
</select>
</fieldset>
<legend class="ui-corner-top hover">
<i class="icon-right rotate unfold"></i>
<span class="translate"
......@@ -203,39 +236,6 @@
</div>
</fieldset>
<legend class="ui-corner-top hover">
<i class="icon-right rotate unfold"></i>
<span class="translate"
data-content="Language">Language
</span>
</legend>
<fieldset class="menuForm ui-widget ui-widget-content ui-corner-all">
<select id="language"
class="unique translate"
name="language"
data-title="Language"
title="Language">
<option id="optionEnglish"
class="translate"
data-content="English"
selected="selected"
value="en"></option>
<option id="optionFrench"
class="translate"
data-content="Français"
value="fr"></option>
<option id="optionJapanese"
class="translate"
data-content="日本語"
value="ja"></option>
<option id="optionSpanish"
class="translate"
data-content="Español"
value="es"></option>
</select>
</fieldset>
<legend class="ui-corner-top hover">
<i class="icon-right rotate unfold"></i>
<span class="translate"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment