Skip to content

Commit

Permalink
new tab is added to help section
Browse files Browse the repository at this point in the history
  • Loading branch information
demetturan committed Aug 10, 2017
1 parent 9a28a37 commit 6c1e59f
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 12 deletions.
1 change: 1 addition & 0 deletions WebContent/data.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ $(document).ready(function()
<div class="col-sm-1">
<p class="credit" style="margin-bottom: 15px;"><a href="/tabloidproteome/help.xhtml" class="text-muted">Help</a></p>
<p class="credit" style="margin-bottom: 15px;"><a href="/tabloidproteome/help.xhtml#documentation" class="text-sub">Documentation</a></p>
<p class="credit" style="margin-bottom: 15px;"><a href="/tabloidproteome/help.xhtml#sourceCode" class="text-sub">Source Code &amp; Api</a></p>
<p class="credit"><a href="/tabloidproteome/help.xhtml#contact" class="text-sub">Contact</a></p>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions WebContent/dataTable.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,7 @@ body {
<div class="col-sm-1">
<p class="credit" style="margin-bottom: 15px;"><a href="/tabloidproteome/help.xhtml" class="text-muted">Help</a></p>
<p class="credit" style="margin-bottom: 15px;"><a href="/tabloidproteome/help.xhtml#documentation" class="text-sub">Documentation</a></p>
<p class="credit" style="margin-bottom: 15px;"><a href="/tabloidproteome/help.xhtml#sourceCode" class="text-sub">Source Code &amp; Api</a></p>
<p class="credit"><a href="/tabloidproteome/help.xhtml#contact" class="text-sub">Contact</a></p>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions WebContent/detailedSearch.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ body {
<div class="col-sm-1">
<p class="credit" style="margin-bottom: 15px;"><a href="/tabloidproteome/help.xhtml" class="text-muted">Help</a></p>
<p class="credit" style="margin-bottom: 15px;"><a href="/tabloidproteome/help.xhtml#documentation" class="text-sub">Documentation</a></p>
<p class="credit" style="margin-bottom: 15px;"><a href="/tabloidproteome/help.xhtml#sourceCode" class="text-sub">Source Code &amp; Api</a></p>
<p class="credit"><a href="/tabloidproteome/help.xhtml#contact" class="text-sub">Contact</a></p>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions WebContent/graph.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,7 @@
<div class="col-sm-1">
<p class="credit" style="margin-bottom: 15px;"><a href="/tabloidproteome/help.xhtml" class="text-muted">Help</a></p>
<p class="credit" style="margin-bottom: 15px;"><a href="/tabloidproteome/help.xhtml#documentation" class="text-sub">Documentation</a></p>
<p class="credit" style="margin-bottom: 15px;"><a href="/tabloidproteome/help.xhtml#sourceCode" class="text-sub">Source Code &amp; Api</a></p>
<p class="credit"><a href="/tabloidproteome/help.xhtml#contact" class="text-sub">Contact</a></p>
</div>
</div>
Expand Down
15 changes: 12 additions & 3 deletions WebContent/help.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ $(document).ready(function()
<div class="col-sm-3">
<ul class="nav nav-pills brand-pills nav-stacked">
<li class="active"><a href="#documentation" data-toggle="tab">Documentation</a></li>
<li><a href="#sourceCode" data-toggle="tab">Source Code &amp; Api</a></li>
<li><a href="#contact" data-toggle="tab">Contact</a></li>
</ul>
</div>
Expand All @@ -116,9 +117,7 @@ $(document).ready(function()
<p>Click
<a target="_blank" href="http://genesis.ugent.be/uvpublicdata/Tabloid_Proteome/TabloidProteome1.2_documentation.pdf">here </a>
for documentation (pdf)</p>
<p>Click
<a target="_blank" href="http://iomics.ugent.be/tabloidproteome/tabloidApi.html">here </a>
for api information</p>

<div>
<h3>Frequently Asked Questions</h3>
<div class="panel panel-default">
Expand Down Expand Up @@ -192,6 +191,15 @@ $(document).ready(function()
</div>
</div>
</div>
<div class="tab-pane" id="sourceCode">
<p>Source code is available on
<a target="_blank" href="https://github.com/compomics/tabloidProteome">GitHub</a>
</p>
<p>Tabloid Proteome provides REST (Representational State Transfer) API which enables you to get the data without using the graphical user interface of the web page.
This can be used to programmatically access some information without downloading entire dataset. Please click
<a target="_blank" href="http://iomics.ugent.be/tabloidproteome/tabloidApi.html">here </a>
for api information</p>
</div>
<div class="tab-pane" id="contact">
<p>For any further questions, feedback or suggestions, you can send mail to one of the following person:</p>
<p>Surya Gupta <a href="mailto:[email protected]" style="text-decoration: underline;">[email protected]</a></p>
Expand Down Expand Up @@ -260,6 +268,7 @@ $(document).ready(function()
<div class="col-sm-1">
<p class="credit" style="margin-bottom: 15px;"><a href="/tabloidproteome/help.xhtml" class="text-muted">Help</a></p>
<p class="credit" style="margin-bottom: 15px;"><a href="/tabloidproteome/help.xhtml#documentation" class="text-sub">Documentation</a></p>
<p class="credit" style="margin-bottom: 15px;"><a href="/tabloidproteome/help.xhtml#sourceCode" class="text-sub">Source Code &amp; Api</a></p>
<p class="credit"><a href="/tabloidproteome/help.xhtml#contact" class="text-sub">Contact</a></p>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions WebContent/information.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ $(document).ready(function()
<div class="col-sm-1">
<p class="credit" style="margin-bottom: 15px;"><a href="/tabloidproteome/help.xhtml" class="text-muted">Help</a></p>
<p class="credit" style="margin-bottom: 15px;"><a href="/tabloidproteome/help.xhtml#documentation" class="text-sub">Documentation</a></p>
<p class="credit" style="margin-bottom: 15px;"><a href="/tabloidproteome/help.xhtml#sourceCode" class="text-sub">Source Code &amp; Api</a></p>
<p class="credit"><a href="/tabloidproteome/help.xhtml#contact" class="text-sub">Contact</a></p>
</div>
</div>
Expand Down
27 changes: 18 additions & 9 deletions WebContent/search.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,9 @@ body {
<script type="text/javascript">

function searchSingle(){

if($('#singleAccession').val() != ""){
if(($('#singleAccession').val().startsWith("P") &#124;&#124; $('#singleAccession').val().startsWith("O") &#124;&#124;
$('#singleAccession').val().startsWith("Q") &#124;&#124; $('#singleAccession').val().startsWith("A"))
&amp;&amp; $('#singleAccession').val().length == 6){
if(isValidUniprotAcc($('#singleAccession').val())){
window.location = '/tabloidproteome/dataTable.xhtml?accession='+ $('#singleAccession').val()
+ '&amp;jaccard=' + $('#jaccardSingle').val();

Expand Down Expand Up @@ -106,12 +105,7 @@ body {
function searchDouble(){
if($('#doubleAccession1').val() != "" &amp;&amp; $('#doubleAccession2').val() != "" ){

if(($('#doubleAccession1').val().startsWith("P") &#124;&#124; $('#doubleAccession1').val().startsWith("Q")
&#124;&#124; $('#doubleAccession1').val().startsWith("O") &#124;&#124; $('#doubleAccession1').val().startsWith("A"))
&amp;&amp; $('#doubleAccession1').val().length == 6
&amp;&amp; ($('#doubleAccession2').val().startsWith("P") &#124;&#124; $('#doubleAccession2').val().startsWith("Q")
&#124;&#124; $('#doubleAccession2').val().startsWith("O")&#124;&#124; $('#doubleAccession2').val().startsWith("A")) &amp;&amp; $('#doubleAccession2').val().length == 6
){
if(isValidUniprotAcc($('#doubleAccession1').val()) &amp;&amp; isValidUniprotAcc($('#doubleAccession2').val())){
window.location = '/tabloidproteome/dataTable.xhtml?accession1=' + $('#doubleAccession1').val()
+ '&amp;accession2=' + $('#doubleAccession2').val() + '&amp;jaccard=' + $('#jaccardDouble').val();

Expand Down Expand Up @@ -144,6 +138,20 @@ body {
return false;
}

function isValidUniprotAcc(accession){
if (accession.trim() == "") {
return false;
}
if (accession.length != 6 &amp;&amp; accession.length != 10) {
return false;
}
var r = new RegExp("[OPQ][0-9][A-Z0-9]{3}[0-9]|[A-NR-Z][0-9]([A-Z][A-Z0-9]{2}[0-9]){1,2}", "i");
if(accession.match(r)){
return true;
}
return false;
}

function searchMultipleProtein(){
var array1 = [];
var array2 = [];
Expand Down Expand Up @@ -984,6 +992,7 @@ body {
<div class="col-sm-1">
<p class="credit" style="margin-bottom: 15px;"><a href="/tabloidproteome/help.xhtml" class="text-muted">Help</a></p>
<p class="credit" style="margin-bottom: 15px;"><a href="/tabloidproteome/help.xhtml#documentation" class="text-sub">Documentation</a></p>
<p class="credit" style="margin-bottom: 15px;"><a href="/tabloidproteome/help.xhtml#sourceCode" class="text-sub">Source Code &amp; Api</a></p>
<p class="credit"><a href="/tabloidproteome/help.xhtml#contact" class="text-sub">Contact</a></p>
</div>
</div>
Expand Down

0 comments on commit 6c1e59f

Please sign in to comment.