commit 559195dbe778a6dd13175dfa54bcf6d7c623897d Author: Gabriel Augendre Date: Fri Jun 4 23:11:15 2021 +0200 Add first two games diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f89a94f --- /dev/null +++ b/.gitignore @@ -0,0 +1,286 @@ + +# Created by https://www.toptal.com/developers/gitignore/api/osx,pycharm,python +# Edit at https://www.toptal.com/developers/gitignore?templates=osx,pycharm,python + +### OSX ### +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +### PyCharm ### +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +# User-specific stuff +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/**/usage.statistics.xml +.idea/**/dictionaries +.idea/**/shelf + +# Generated files +.idea/**/contentModel.xml + +# Sensitive or high-churn files +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml +.idea/**/dbnavigator.xml + +# Gradle +.idea/**/gradle.xml +.idea/**/libraries + +# Gradle and Maven with auto-import +# When using Gradle or Maven with auto-import, you should exclude module files, +# since they will be recreated, and may cause churn. Uncomment if using +# auto-import. +# .idea/artifacts +# .idea/compiler.xml +# .idea/jarRepositories.xml +# .idea/modules.xml +# .idea/*.iml +# .idea/modules +# *.iml +# *.ipr + +# CMake +cmake-build-*/ + +# Mongo Explorer plugin +.idea/**/mongoSettings.xml + +# File-based project format +*.iws + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Cursive Clojure plugin +.idea/replstate.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties + +# Editor-based Rest Client +.idea/httpRequests + +# Android studio 3.1+ serialized cache file +.idea/caches/build_file_checksums.ser + +### PyCharm Patch ### +# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721 + +# *.iml +# modules.xml +# .idea/misc.xml +# *.ipr + +# Sonarlint plugin +# https://plugins.jetbrains.com/plugin/7973-sonarlint +.idea/**/sonarlint/ + +# SonarQube Plugin +# https://plugins.jetbrains.com/plugin/7238-sonarqube-community-plugin +.idea/**/sonarIssues.xml + +# Markdown Navigator plugin +# https://plugins.jetbrains.com/plugin/7896-markdown-navigator-enhanced +.idea/**/markdown-navigator.xml +.idea/**/markdown-navigator-enh.xml +.idea/**/markdown-navigator/ + +# Cache file creation bug +# See https://youtrack.jetbrains.com/issue/JBR-2257 +.idea/$CACHE_FILE$ + +# CodeStream plugin +# https://plugins.jetbrains.com/plugin/12206-codestream +.idea/codestream.xml + +### Python ### +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +parts/ +sdist/ +var/ +wheels/ +pip-wheel-metadata/ +share/python-wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +*.py,cover +.hypothesis/ +.pytest_cache/ +pytestdebug.log + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py +db.sqlite3 +db.sqlite3-journal + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ +doc/_build/ + +# PyBuilder +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# pyenv +.python-version + +# pipenv +# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. +# However, in case of collaboration, if having platform-specific dependencies or dependencies +# having no cross-platform support, pipenv may install dependencies that don't work, or not +# install all needed dependencies. +#Pipfile.lock + +# poetry +#poetry.lock + +# PEP 582; used by e.g. github.com/David-OConnor/pyflow +__pypackages__/ + +# Celery stuff +celerybeat-schedule +celerybeat.pid + +# SageMath parsed files +*.sage.py + +# Environments +# .env +.env/ +.venv/ +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ +pythonenv* + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ + +# pytype static type analyzer +.pytype/ + +# operating system-related files +# file properties cache/storage on macOS +*.DS_Store +# thumbnail cache on Windows +Thumbs.db + +# profiling data +.prof + + +# End of https://www.toptal.com/developers/gitignore/api/osx,pycharm,python +.idea diff --git a/index.html b/index.html new file mode 100644 index 0000000..22697db --- /dev/null +++ b/index.html @@ -0,0 +1,25 @@ + + + + + Potain de chantier #3 + + + +

Potain de chantier #3

+

Jeux interactifs

+

+ Découvrez les magnifiques moquettes du Cecolyon avec notre série de jeux interactifs ! +

+ + + + \ No newline at end of file diff --git a/jeux/assets/camel.js b/jeux/assets/camel.js new file mode 100644 index 0000000..ad9043e --- /dev/null +++ b/jeux/assets/camel.js @@ -0,0 +1,20 @@ +let counter = new Set(); +const MAX_DIFFS = 7; + +function zone(name) { + if (!counter.has(name)) { + counter.add(name); + const li = document.createElement("li"); + const content = document.createTextNode(name); + li.appendChild(content); + document.getElementById("found").appendChild(li); + } + displayCounter(); +} + +function displayCounter() { + if (counter.size >= MAX_DIFFS) { + win(); + } + document.getElementById("counter").innerText = String(counter.size); +} diff --git a/jeux/assets/jeu.js b/jeux/assets/jeu.js new file mode 100644 index 0000000..41d6a3d --- /dev/null +++ b/jeux/assets/jeu.js @@ -0,0 +1,17 @@ +let timeout; + +function win() { + clearTimeout(timeout); + document.querySelector(".failure").classList.add("hidden"); + document.querySelector(".success").classList.remove("hidden"); +} + +function lose() { + clearTimeout(timeout); + document.querySelector(".success").classList.add("hidden"); + let failure = document.querySelector(".failure"); + failure.classList.remove("hidden"); + timeout = setTimeout(() => { + failure.classList.add("hidden"); + }, 5*1000); +} diff --git a/jeux/assets/nature.css b/jeux/assets/nature.css new file mode 100644 index 0000000..e69de29 diff --git a/jeux/assets/nature.js b/jeux/assets/nature.js new file mode 100644 index 0000000..e69de29 diff --git a/jeux/assets/style.css b/jeux/assets/style.css new file mode 100644 index 0000000..5f9922e --- /dev/null +++ b/jeux/assets/style.css @@ -0,0 +1,11 @@ +.hidden { + display: none; +} + +.failure { + color: #a71717; +} + +.success { + color: green; +} diff --git a/jeux/camel.html b/jeux/camel.html new file mode 100644 index 0000000..fcf0c03 --- /dev/null +++ b/jeux/camel.html @@ -0,0 +1,45 @@ + + + + + Camel + + + +

Camel

+ +

+ Jouons donc au jeu des 7 différences avec GSE France ! +

+

+ Moquette + Moquette +

+ + + + + + + + + +

+ Score: 0/7
+ Vous avez déjà trouvé : +

+
    + + + + + + + \ No newline at end of file diff --git a/jeux/images/camel-2.jpg b/jeux/images/camel-2.jpg new file mode 100644 index 0000000..b25d2b0 Binary files /dev/null and b/jeux/images/camel-2.jpg differ diff --git a/jeux/images/camel.afphoto b/jeux/images/camel.afphoto new file mode 100644 index 0000000..42dbb60 Binary files /dev/null and b/jeux/images/camel.afphoto differ diff --git a/jeux/images/camel.jpg b/jeux/images/camel.jpg new file mode 100644 index 0000000..2819489 Binary files /dev/null and b/jeux/images/camel.jpg differ diff --git a/jeux/images/signal.jpg b/jeux/images/signal.jpg new file mode 100644 index 0000000..5da18a6 Binary files /dev/null and b/jeux/images/signal.jpg differ diff --git a/jeux/nature.html b/jeux/nature.html new file mode 100644 index 0000000..e69de29 diff --git a/jeux/signal.html b/jeux/signal.html new file mode 100644 index 0000000..93ed036 --- /dev/null +++ b/jeux/signal.html @@ -0,0 +1,43 @@ + + + + + Signal + + + +

    Signal

    + +

    + Peter le livreur arrive sur le plateau de la log au niveau du joli point rose + et il doit déposer son colis au bon endroit.
    + Les instructions qui lui sont fournies sont très claires : +

    +
      +
    1. +
    2. +
    3. +
    4. +
    +

    + Moquette + + + + +

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