Skip to content

Commit

Permalink
Fixed JSON logic
Browse files Browse the repository at this point in the history
  • Loading branch information
FANMixco committed Mar 8, 2024
1 parent accd34f commit ee617dc
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 27 deletions.
38 changes: 19 additions & 19 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Federico Navarrete's — Projects Gallery</title>
<meta name="description" content="Federico Navarrete's — Projects Gallery">
<meta name="description" content="Federico Navarrete's — Projects Gallery">
<meta name="keywords" content="Windows Phone,Windows 8,Windows 10,Windows 11,Apps,Play Store,Microsoft Store,Azure,Web,ASP,Java,ASP MVC,Innovation,Gallery,Google Maps,HTML,CSS,JS,jQuery,Android,PhoneGap,Cordova,Visual Basic,C#,Xamarin,Lodzarts">
<meta name="author" content="Federico Navarrete">

Expand Down Expand Up @@ -63,9 +63,9 @@
<body>
<section class="gallery-block cards-gallery">
<div id="galleryApps" class="container">
<div id="header" class="heading">
<h2 id="galleryTitle"></h2>
</div>
<div id="header" class="heading">
<h2 id="galleryTitle"></h2>
</div>
</div>
</div>
</section>
Expand All @@ -77,22 +77,22 @@ <h2 id="galleryTitle"></h2>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-WQKJ9Y00XJ"></script>
<script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
<script src="js/libs/string-manipulation.min.js"></script>
<script src="js/libs/underscore-min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.13.6/underscore-min.js"></script>
<script src="js/libs/sorter.min.js"></script>
<script src="js/libs/tabGenerator.min.js"></script>
<script src="js/libs/tabGenerator.min.js"></script>
<script src="js/apps.min.js"></script>
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "WebSite",
"name": "Federico Navarrete's — Projects Gallery",
"url": "https://apps.federiconavarrete.com",
"potentialAction": {
"@type": "SearchAction",
"target": "{search_term_string}",
"query-input": "required name=search_term_string"
}
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "WebSite",
"name": "Federico Navarrete's — Projects Gallery",
"url": "https://apps.federiconavarrete.com",
"potentialAction": {
"@type": "SearchAction",
"target": "{search_term_string}",
"query-input": "required name=search_term_string"
}
}
</script>
</body>
</html>
2 changes: 1 addition & 1 deletion js/apps.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ function setApps(appCollection, control, techs, customIcons) {
let years = appCollection[item].yearStart;

if (appCollection[item].yearStart !== appCollection[item].yearEnd) {
years += appCollection[item].yearEnd !== undefined ? ` - ${appCollection[item].yearEnd}` : " - now";
years += appCollection[item].yearEnd !== null ? ` - ${appCollection[item].yearEnd}` : " - now";
}

let tooltip = `${years}<br><br>${appCollection[item].description}`;
Expand Down
2 changes: 1 addition & 1 deletion js/apps.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ee617dc

Please sign in to comment.