From c325fa334abf03648dac71f86f4315c1b1efbdf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor?= Date: Sun, 22 Oct 2023 08:39:56 +0200 Subject: [PATCH] Revert "removed website" This reverts commit 57b48c4ef7bf0ba6fffe4e56b9061cb77883d346. --- click.js | 58 +++++++++++++++++++++++ hitcounter.php | 13 +++++ index.html | 126 +++++++++++++++++++++++++++++++++++++++++++++++++ style.css | 111 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 308 insertions(+) create mode 100644 click.js create mode 100644 hitcounter.php create mode 100644 index.html create mode 100644 style.css diff --git a/click.js b/click.js new file mode 100644 index 0000000..bf8999c --- /dev/null +++ b/click.js @@ -0,0 +1,58 @@ +let numClicks = [numClicksMath, numClicksMathFM, numClicksMathLA, numClicksMathRVF, numClicksMathAS, numClicksMathDM, numClicksMathFSV, numClicksMathLG, numClicksMathMA, numClicksMathNM, numClicksMathCA, numClicksMathDE, numClicksMathDG, numClicksMathGT, numClicksMathP, numClicksMathS, numClicksMathTOP, numClicksMathAT, numClicksMathA, numClicksMathCAL, numClicksMathDS, numClicksMathHA, numClicksMathLM, numClicksMathNC, numClicksMathNIPDE, numClicksMathPDE, numClicksMathRFA, numClicksMathSP]; + +for (let i = 0; i < numClicks.length; i++) { + numClicks[i] = localStorage.getItem(numClicks[i] + "_counter"); + if (numClicks[i] == null) { + numClicks[i] = 0; + localStorage.setItem(numClicks[i] + "_counter", numClicks[i]); + } + numClicks[i] = parseInt(numClicks[i]); + updateCount(i, numClicks[i]); +} + +// function clickFunction(numClick) { +// switch (numClick) { +// case "MATH": +// numClicks = numClicksMath++; +// break; +// case "LG": +// break; +// // default: +// // // code block +// } +// print("hem entrat"); +// document.getElementById(numClick).innerHTML = numClicks; +// return false; +// } + +function incrementCounter(text) { + let i = parseInt(text); + let count = parseInt(localStorage.getItem(numClicks[i] + "_counter")); + count = count + 1; + localStorage.setItem(numClicks[i] + "_counter", count); + updateCount(text, count); + return true; +} +function updateCount(code, count) { + document.getElementById(code).innerHTML = "Clicked " + count + " times!"; +} + +// window.onload = function () { +// // make an AJAX request to the hitcounter.php script +// var xhr = new XMLHttpRequest(); +// xhr.open("GET", "hitcount.txt", true); +// xhr.send(); + +// // when the AJAX request is complete, update the hit count display +// xhr.onreadystatechange = function () { +// if (xhr.readyState == 4 && xhr.status == 200) { +// var count = xhr.responseText; +// document.getElementById("hitcount").innerHTML = count; +// } +// }; +// }; +// var button = document.getElementById("clickme"), count = 0; +// button.onclick = function() { +// count += 1; +// button.innerHTML = "Click me: " + count; +// }; diff --git a/hitcounter.php b/hitcounter.php new file mode 100644 index 0000000..5f7bda2 --- /dev/null +++ b/hitcounter.php @@ -0,0 +1,13 @@ + diff --git a/index.html b/index.html new file mode 100644 index 0000000..420e7d0 --- /dev/null +++ b/index.html @@ -0,0 +1,126 @@ + + + + + + + + Complete summaries + + + + +
+

Mathematics and Physics notes

+
+

This website intends to summarize some notes about each important subject in Mathematics and Physics degree at Autonomous University of Barcelona (UAB) and at Paris Dauphine - PSL University.

+

You can download the sections separately as you like or the whole file of Mathematics or Physics (better in order to avoid linking errors).

+
+
+
+

Mathematics

+ +

Full summaries of

+ + +

Bachelor level

+
    +
  • 1st year:
  • +
      +
    • +
    • +
    • +
    +
  • 2nd year:
  • +
      +
    • +
    • +
    • +
    • +
    • +
    • +
    +
  • 3rd year:
  • +
      +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    +
  • 4th year:
  • +
      +
    • + +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    +
+

Master level

+
    +
  • 1st year:
  • +
      +
    • +
    • +
    • +
    • + +
    • +
    • +
    • +
    • +
    +
+
+
+

Topics on Physics

+ +
+
    +
  • Basic:
  • +
      + + +
    • +
    • + + + + + + +
    • + +
    +
  • Advanced:
  • +
      +
    • +
    +
+
+
+ + + + + \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..7e99b65 --- /dev/null +++ b/style.css @@ -0,0 +1,111 @@ +* { + background-color: var(--background_color); + /* text-align: center; */ + font-family: Helvetica, Arial, sans-serif; +} + +:root { + --general_color: #549c1c; + --background_color: #eaeaea; + /* --background_second_color: #8b8a84; */ +} + +.header { + padding: 20px; + text-align: center; +} + +.button { + border: 2px solid var(--background_color); + border-radius: 10px; + background-color: var(--background_color); + color: var(--general_color); + /* padding: 16px 25px; */ + text-align: left; + text-decoration: none; + display: inline-block; + font-size: 16px; + font-weight: normal; + /* margin: 4px 2px; */ + transition-duration: 0.4s; + cursor: pointer; +} + +.button:hover { + background-color: var(--general_color); + color: var(--background_color); +} + +.footer { + padding: 20px; + text-align: center; +} + +.column { + float: left; + column-count: 1; + padding: 20px; +} + +.row { + content: ""; + display: table; + clear: both; + margin-left: auto; + margin-right: auto; +} + +.special-color { + color: var(--general_color); +} + +/* .clickBox { + font-weight: normal; + background-color: var(--primary-low); + top: -1px; + color: var(--primary-medium); + position: relative; + border: none; + border-top-color: currentcolor; + border-top-style: none; + border-top-width: medium; + border-right-color: currentcolor; + border-right-style: none; + border-right-width: medium; + border-bottom-color: currentcolor; + border-bottom-style: none; + border-bottom-width: medium; + border-left-color: currentcolor; + border-left-style: none; + border-left-width: medium; + border-image-outset: 0; + border-image-repeat: stretch; + border-image-slice: 100%; + border-image-source: none; + border-image-width: 1; +} */ + +.clickBox { + padding: 0.21em 0.42em; + min-width: 0.5em; + color: #8b8a84; + font-size: 10px; + /* line-height: 5px; */ + text-align: center; + vertical-align: middle; + background-color: #d7d7d7; + display: inline-block; + font-weight: normal; + white-space: nowrap; + border-radius: 10px; +} + +/* .vertical-divider { + border-right: 5px solid #549c1c; +} */ + +/* @media screen and (max-width:600px) { + .column { + width: 100%; + } +} */ \ No newline at end of file