Commit 108d0564 authored by Marcel Hauck's avatar Marcel Hauck

added new product; code refactoring

parent 240c18c6
Pipeline #14435 passed with stage
in 19 seconds
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 22.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="レイヤー_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px"
y="0px" viewBox="0 0 366.9 72.4" style="enable-background:new 0 0 366.9 72.4;" xml:space="preserve">
<rect x="261.9" y="36.8" width="7.3" height="35.6"/>
<polygon points="304,72.4 304,36.8 296.7,36.8 296.7,61.9 288.4,36.8 277,36.8 277,72.4 284.3,72.4 284.3,46.5 292.8,72.4 "/>
<polygon points="311.4,36.8 311.4,72.4 335.8,72.4 335.8,65.3 318.7,65.3 318.7,58.2 334.5,58.2 334.5,51.1 318.7,51.1 318.7,43.9
335.8,43.9 335.8,36.8 "/>
<polygon points="366.9,51.1 349.8,51.1 349.8,43.9 366.9,43.9 366.9,36.8 342.5,36.8 342.5,58.2 359.6,58.2 359.6,65.3 342.5,65.3
342.5,72.4 366.9,72.4 "/>
<polygon points="245.2,51.1 231.6,51.1 231.6,36.8 224.3,36.8 224.3,72.4 231.6,72.4 231.6,58.2 245.2,58.2 245.2,72.4 252.5,72.4
252.5,36.8 245.2,36.8 "/>
<path d="M158.2,36.8v35.6h7.3V61.7h13.6v10.7h7.3V36.8H158.2z M165.5,43.9h13.6v10.7h-13.6V43.9z"/>
<polygon points="217.3,72.4 217.3,65.3 201.3,65.3 201.3,43.9 217.3,43.9 217.3,36.8 194,36.8 194,72.4 "/>
<path d="M144.7,1.3l-8.2,24.5l-8.2-24.5h-0.1h-7.4h-0.1l-8.2,24.5l-8.2-24.5h-7.5l11.8,35.5L96.8,72.4h7.5l8.2-24.5l8.2,24.5h0.1
h7.4h0.1l8.2-24.5l8.2,24.5h7.5l-11.8-35.5l11.8-35.5h-7.5V1.3z M124.5,62.1l-8.1-25.2l8.1-25.2l8.1,25.2L124.5,62.1z"/>
<polygon points="54.8,36.8 54.8,29.7 38.5,29.7 38.5,1.3 31.2,1.3 31.2,36.8 "/>
<polygon points="0,1.3 0,36.9 7.3,36.9 7.3,24.5 23.6,24.5 23.6,17.4 7.3,17.4 7.3,8.4 23.6,8.4 23.6,1.3 "/>
<path d="M76.1,0C65.5,0,57,8.5,57,19.1s8.5,19.1,19.1,19.1c10.5,0,19.1-8.5,19.1-19.1S86.6,0,76.1,0 M76.1,31.3
c-6.7,0-12.2-5.5-12.2-12.2S69.3,6.8,76.1,6.8c6.7,0,12.2,5.5,12.2,12.2S82.8,31.3,76.1,31.3"/>
</svg>
function setEqualProductHeight(){
// set equal minimum height for all products
// https://stackoverflow.com/a/6061029
var maxHeight = Math.max.apply(null, $(".product-wrapper").map(function (){
return $(this).height();
}).get());
$(".product-wrapper").css({"min-height" : maxHeight});
}
$( document ).ready(function() {
// switches for displaying various information
var showProductCount = true;
......@@ -134,6 +143,7 @@ $( document ).ready(function() {
throw new Error("The given subcategory '"+ currentSubcategory + "' for '" + currentName + "' does not exist!");
}
}
setEqualProductHeight();
}
catch (error) {
console.log(error);
......@@ -144,13 +154,6 @@ $( document ).ready(function() {
});
});
// set equal minimum height for all products
var maxHeight = Math.max.apply(null, $(".product-wrapper").map(function ()
{
return $(this).height();
}).get());
$(".product-wrapper").css({"min-height" : maxHeight});
// show or hide various information
if (showProductCount){
$(".counter-text").show();
......@@ -175,5 +178,5 @@ $( document ).ready(function() {
})
.fail(function() {
// Executed if at least one request fails
})
});
});
\ No newline at end of file
......@@ -1247,5 +1247,22 @@
"categories": [
"BeschaffungInhalte_TextToSpeechToText"
]
},
{
"name": "Flow Machines",
"manufacturer": "Sony",
"logo": "flowmachines.svg",
"link": "https://www.flow-machines.com/",
"mediatype": [
"audio"
],
"description": "Melodien entwickeln",
"technologyReadinessLevel": "basic-research",
"aiTechnologiesUsed": [
""
],
"categories": [
"ProduktionContent_AudioGeneration"
]
}
]
\ No newline at end of file
Markdown is supported
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