Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
File renamed without changes.
598 changes: 299 additions & 299 deletions content/en/applications/nuxl.md → content/en/_applications/nuxl.md

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions content/en/applications.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "OpenMS Applications"
type: "applications"
---

3 changes: 2 additions & 1 deletion layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@
{{ end }}

{{ partial "javascript.html" . }}

{{ partial "analytics.html" . }}


<script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js"></script>
Expand Down
71 changes: 71 additions & 0 deletions layouts/applications/single.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
<head>
<!-- Font Awesome -->
<script async src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/js/all.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" />
{{ partial "meta.html" . }}
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>

<!-- Render theme css -->
{{ partial "css.html" . }}

<!-- Render custom header -->
{{ partial "head.html" . }}

<!-- Refer: https://regisphilibert.com/blog/2018/08/hugo-multilingual-part-1-managing-content-translation/ -->
{{ if .IsTranslated }}
{{ range .Translations }}
<link rel="alternate" hreflang="{{ .Language.Lang }}" href="{{ .RelPermalink }}" title="{{ .Language.LanguageName }}" />
{{ end }}
{{ end }}
{{ template "_internal/twitter_cards.html" . }}
</head>
<body>
<script type="text/javascript">
(function(window, document, dataLayerName, id) {
window[dataLayerName]=window[dataLayerName]||[],window[dataLayerName].push({start:(new Date).getTime(),event:"stg.start"});var scripts=document.getElementsByTagName('script')[0],tags=document.createElement('script');
function stgCreateCookie(a,b,c){var d="";if(c){var e=new Date;e.setTime(e.getTime()+24*c*60*60*1e3),d="; expires="+e.toUTCString()}document.cookie=a+"="+b+d+"; path=/"}
var isStgDebug=(window.location.href.match("stg_debug")||document.cookie.match("stg_debug"))&&!window.location.href.match("stg_disable_debug");stgCreateCookie("stg_debug",isStgDebug?1:"",isStgDebug?14:-1);
var qP=[];dataLayerName!=="dataLayer"&&qP.push("data_layer_name="+dataLayerName),isStgDebug&&qP.push("stg_debug");var qPString=qP.length>0?("?"+qP.join("&")):"";
tags.async=!0,tags.src="https://openms-web.containers.piwik.pro/"+id+".js"+qPString,scripts.parentNode.insertBefore(tags,scripts);
!function(a,n,i){a[n]=a[n]||{};for(var c=0;c<i.length;c++)!function(i){a[n][i]=a[n][i]||{},a[n][i].api=a[n][i].api||function(){var a=[].slice.call(arguments,0);"string"==typeof a[0]&&window[dataLayerName].push({event:n+"."+i+":"+a[0],parameters:[].slice.call(arguments,1)})}}(i[c])}(window,"ppms",["tm","cm"]);
})(window, document, 'dataLayer', 'dc313113-a933-4228-87c2-08bbd48f8786');
</script>

<!-- Preloader. Set to true for front-page fade-in animation -->
{{ if (and .IsHome .Site.Params.fadeFrontPage) }}
<div id="preloader"></div>
{{ end }}

{{ block "navbar" . }}
{{ partial "navbar.html" . }}
{{ partial "navbar-clone.html" . }}
{{ end }}

{{ block "main" . }}
{{ end }}

{{ partial "applications.html" . }}
{{ if .IsPage }}
{{ if eq .File.BaseFileName "applications" }}
<script src="/js/applications.js"></script>
{{ end }}
{{ end }}

<!-- Back To Top Button -->
<div id="backtotop"><a href="#" id="backtotop-color"></a></div>

{{ if .Site.Params.footer }}
{{ partial "footer.html" . }}
{{ end }}

{{ partial "javascript.html" . }}
{{ partial "analytics.html" . }}


<script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js"></script>
</body>
</html>
138 changes: 128 additions & 10 deletions layouts/partials/applications.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,129 @@
{{ range first 1 (or (where .Site.RegularPages "Section" "news") (slice (.Site.GetPage "news"))) }}
{{ $newsLink := default "/news" .Params.newsLink }}
{{ $newsHeader := default .Title .Params.newsHeader }}
{{ $date := .Date.Format "2006-01-02" }}
<div class="news-container">
<div class="news-title"><a href="{{ relURL $newsLink }}"> {{ $newsHeader }}</a></div>
{{ if .Date }}
<div class="news-date"><a href="{{ relURL $newsLink }}">{{ $date }}</a></div>
{{ end }}
<div class="container">
<h2>OpenMS Software Database</h2>
<p>Introduction text explaining how to use this database.</p>

<!-- Search Field -->
<input type="text" id="search" class="search-bar" placeholder="Search tools or applications..." onkeyup="filterItems()" list="tag-suggestions">
<datalist id="tag-suggestions"></datalist>
<div id="category-buttons" class="category-select"></div>
<div id="tag-buttons"></div>
<button id="reset-tags">Reset Tags</button>
<div id="match-count"></div>
<div id="item-list" data-category="All"></div>

</div>
{{ end }}

<style>
.container { max-width: 900px; margin: auto; background: white; padding: 20px; border-radius: 10px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); }
h2 { text-align: center; color: #2c3e50; }
p { text-align: center; color: #555; }
.search-bar { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 5px; font-size: 16px; }
.category-select { display: flex; justify-content: center; gap: 10px; margin-bottom: 15px; }
.category-select button {
padding: 10px 20px; border: none; cursor: pointer; border-radius: 5px;
background-color: #3498db; color: white; font-size: 14px; transition: 0.3s;
}
.category-select button:hover { background-color: #2980b9; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 20px; }

.tag-button {
margin: 4px;
padding: 6px 12px;
font-size: 14px;
border-radius: 4px;
border: none;
background: #bdc3c7;
color: white;
transition: background 0.2s ease;
}

.tag-button.positive {
background: #d4edda;
color: black;
}

.tag-button.negative {
background: #f8d7da;
color: black;
}

.tag-button:hover {
color: black;
}

#tag-buttons {
display: flex;
flex-wrap: wrap;
gap: 6px;
}

.entry-tag {
padding: 3px 8px;
margin: 2px;
border-radius: 12px;
background-color: #e0e0e0;
color: #333;
display: inline-block;
font-size: 0.85em;
cursor: pointer;
}

.entry-tag.positive {
background-color: #d4edda;
color: #155724;
}

.entry-tag.negative {
background-color: #f8d7da;
color: #721c24;
}

.item {
background: white;
border-radius: 10px;
padding: 16px;
margin-bottom: 12px;
box-shadow: 0 2px 6px rgba(0,0,0,0.05);
transition: transform 0.2s ease;
}

.item:hover {
transform: scale(1.01);
cursor: pointer;
}
.item-content { margin-bottom: 10px; }
.item strong {
font-size: 18px;
color: #2c3e50;
}

.item .item-description {
color: #555;
margin-top: 4px;
font-size: 14px;
text-align: left;
}

.item-category { font-size: 14px; padding: 5px 10px; border-radius: 5px; display: inline-block; margin-top: 5px; }
.application { background-color: #3498db; color: white; }
.tool { background-color: #9b59b6; color: white; }
.entry-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
.entry-tag { font-size: 12px; padding: 5px 8px; background: #bdc3c7; color: white; border-radius: 4px; }

#match-count {
margin-top: 12px;
font-weight: bold;
color: #555;
}

.filter-bar {
position: sticky;
top: 60px;
background: #fff;
z-index: 10;
padding: 12px 0;
}

</style>

<!--<script>console.log("Partial loaded!")</script>-->
2 changes: 1 addition & 1 deletion generate_bib.py → scripts/generate_bib.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
urls.append(url)

citations['url'] = urls
with open("content/en/publications.md", "w") as file:
with open("../content/en/publications.md", "w") as file:
file.write(f"# List of OpenMS Publications\n\n")
for year, year_citations in citations.groupby('Year', sort=False):
year = int(year)
Expand Down
1 change: 1 addition & 0 deletions static/data/tools.json

Large diffs are not rendered by default.

Loading