diff --git a/.gitignore b/.gitignore index 40b878d..7de96a5 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ -node_modules/ \ No newline at end of file +web/node_modules/ + +web/config/ \ No newline at end of file diff --git a/web/locales/en.json b/web/locales/en.json index 99b3443..5600ef3 100644 --- a/web/locales/en.json +++ b/web/locales/en.json @@ -12,7 +12,27 @@ "on_demand_text": "Create and share your ideas on our lab-room platform. Join tutors labs, learn more about your interests and broaden your horizon.", "git": "Git", "git_text": "The wolds leading, powerful collaboration tool at your disposal on our servers. Keep in touch with your workmates and make sharing simpler then ever.", - "available_swarmlab": "Available Swarmlab Labrooms", - "bug": "Found a bug? Help us fix it!" + "available_swarmlab": "Available Swarmlab Lab-rooms", + "bug": "Found a bug? Help us fix it!", + "more_info": "More Info", + "mpi_header": "MPI", + "mpi_text": "MPICH is a high performance and widely portable implementation of the Message Passing Interface (MPI) standard. ", + "jdk_header": "Open JDK", + "jdk_text": "OpenJDK (Open Java Development Kit) is a free and open-source implementation of the Java Platform, Standard Edition (Java SE) ", + "linux_header": "Linux Networking/Admin/Devel", + "linux_text1": "This is designed to help you with:", + "linux_text2": "Linux Networking", + "linux_text3": "Build network on top of OS", + "linux_text4": "Essentials of Linux System Administration", + "linux_text5": "Learn to orchestrate a lot of linux machines with ansible", + "r_header": "R Project for Statistical Computing", + "r_text": "One of the powerful choices for statistical analysis. R helps you to get big picture of your data by calculating statistical parameters like mean, standard deviation, correlation etc ", + "node_header": "Node.js", + "node_text1 ": "Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. This Labroom is designed to help you devel:", + "node_text2": "Web Applications and APIs with express", + "node_text3": "WebSocket Client & Server Implementation for Node", + "node_text4": "Learn How to providing a bi-directional communication channel between a client and a server.", + "python_header": "Python, scipy", + "python_text": "This Labroom provides a Python-based ecosystem of open-source software for mathematics, science, engineering and Web development" } } \ No newline at end of file diff --git a/web/public/javascripts/fetchLabs.js b/web/public/javascripts/fetchLabs.js deleted file mode 100644 index e69de29..0000000 diff --git a/web/public/javascripts/labSearch.js b/web/public/javascripts/labSearch.js new file mode 100644 index 0000000..ed8a167 --- /dev/null +++ b/web/public/javascripts/labSearch.js @@ -0,0 +1,11 @@ +$("#search").on("keyup", () => { + var searchValue = $("#search").val().toLowerCase(); + $(".card .card-body .card-title").each(function () { // es6 arrow function wont work with 'this' + var title = $(this); + if (title.text().toLowerCase().includes(searchValue)) { + $(this).parent().parent().show(); + } else { + $(this).parent().parent().hide(); + } + }); +}); \ No newline at end of file diff --git a/web/views/index.ejs b/web/views/index.ejs index 4ca5691..1cf9dad 100755 --- a/web/views/index.ejs +++ b/web/views/index.ejs @@ -98,54 +98,103 @@ -
+
-

<%= t('available_swarmlab') %>

+

<%= t('available_swarmlab') %>

+
+ +
-

Title

-

Nullam id dolor id nibh ultricies vehicula ut id elit. Cras justo odio, dapibus ac - facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus.

More Info +

<%= t('python_header') %>

+

+ <%= t('python_text') %> +

    +
  • NumPy
  • +
  • SciPy library
  • +
  • Matplotlib
  • +
  • IPython
  • +
  • SymPy
  • +
  • pandas
  • +
  • Spyder scientific environment.
  • +
+

+
+ +
+
+
+

<%= t('node_header') %>

+

+ <%= t('node_text1') %> +

    +
  • <%= t('node_text2') %>
  • +
  • <%= t('node_text3') %>
  • +
  • <%= t('node_text4') %>
  • +
+

+
+ +
+
+
+

<%= t('linux_header') %>

+

+ <%= t('linux_text1') %> +

    +
  • <%= t('linux_text2') %>
  • +
  • <%= t('linux_text3') %>
  • +
  • <%= t('linux_text4') %>
  • +
  • <%= t('linux_text5') %>
  • +
+

+
+ +
+
+
+
+
+

<%= t('mpi_header') %>

+

<%= t('mpi_text') %>

+
+
-

Title

-

Nullam id dolor id nibh ultricies vehicula ut id elit. Cras justo odio, dapibus ac - facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus.

Button +

<%= t('r_header') %>

+

<%= t('r_text') %>

+
+
-

Title

-

Nullam id dolor id nibh ultricies vehicula ut id elit. Cras justo odio, dapibus ac - facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus.

Button +

<%= t('jdk_header') %>

+

<%= t('jdk_text') %>

+
+
-
- -
+ \ No newline at end of file