Skip to content
Snippets Groups Projects
Commit 641bbc81 authored by Hoai Viet Nguyen's avatar Hoai Viet Nguyen
Browse files

Initial commit

parents
Branches main
No related tags found
No related merge requests found
# Created by https://www.toptal.com/developers/gitignore/api/macos,visualstudiocode,intellij
# Edit at https://www.toptal.com/developers/gitignore?templates=macos,visualstudiocode,intellij
### Intellij ###
# 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
# AWS User-specific
.idea/**/aws.xml
# 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
# SonarLint plugin
.idea/sonarlint/
# 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
### Intellij 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
# Azure Toolkit for IntelliJ plugin
# https://plugins.jetbrains.com/plugin/8053-azure-toolkit-for-intellij
.idea/**/azureSettings.xml
### macOS ###
# 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
### macOS Patch ###
# iCloud generated files
*.icloud
### VisualStudioCode ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets
# Local History for Visual Studio Code
.history/
# Built Visual Studio Code Extensions
*.vsix
### VisualStudioCode Patch ###
# Ignore all local history of files
.history
.ionide
# End of https://www.toptal.com/developers/gitignore/api/macos,visualstudiocode,intellij
\ No newline at end of file
:80 {
file_server
}
\ No newline at end of file
FROM caddy:2.9.1
COPY Caddyfile /etc/caddy/Caddyfile
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<title>DOM</title>
</head>
<body>
<div id="header"><h1>Start Page</h1></div>
<div id="navigation"></div>
<div id="main"></div>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Get Element By Id Demo</title>
</head>
<body>
<h1 id="title">Title here</h1>
<h2 id="subtitle">Subtitle here</h2>
<script>
document.getElementById("title").innerText = Date()
document.getElementById("subtitle").innerHTML = "<b>New Subtitle" + Math.random() + "</b>"
</script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JavaScript Demo</title>
</head>
<body>
<h1>Examples</h1>
<ul>
<li><a href="/javascriptDemoEmbedded.html" target="_blank">Embedded JavaScript</a></li>
<li><a href="/javascriptDemoExternal.html" target="_blank">External JavaScript</a></li>
<li><a href="/getelementbyiddemo.html" target="_blank">getElementById</a></li>
<li><a href="/interactionDemo.html" target="_blank">Interaction demo</a></li>
<li><a href="/onClickDemo.html" target="_blank">onClick demo</a></li>
<li><a href="/dom.html" target="_blank">DOM</a></li>
</ul>
</body>
</html>
\ No newline at end of file
<html lang="en">
<head>
<title>Title</title>
</head>
<body>
<input type="text" id="message">
<button type="button" id="myButton">Click here</button>
<script>
document.getElementById("myButton").addEventListener("click",clickListener)
function clickListener(){
alert(document.getElementById("message").value)
}
</script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<title>JavaScript Demo</title>
</head>
<body>
<script src="/javascripts/app.js">
</script>
</body>
</html>
\ No newline at end of file
<!doctype html>
<html lang="en">
<head>
<title>JavaScript Demo</title>
</head>
<body>
<script>
console.log("Hello from inline JavaScript")
</script>
</body>
</html>
\ No newline at end of file
var a = 10
console.log(a)
a +=5
console.log(a)
a = "Hello"
console.log(a)
a = true
var array = [12, 1, "Hello"];
var anotherArray = new Array(1,2,3)
anotherArray[2] = "World"
console.log(anotherArray.length)
anotherArray.push(true)
array.concat(anotherArray)
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>On Click Demo</title>
</head>
<body>
<button onclick="showDate()" onmouseover="alert(1)">Display date</button>
<p id="date"></p>
<script>
function showDate(){
document.getElementById("date").innerText = Date()
}
</script>
</body>
</html>
\ No newline at end of file
services:
caddy:
build: .
ports:
- 9004:80
volumes:
- ./data:/srv
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment