Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ITPDP2020
Teskeholdet
Spud-Web
Commits
f50f11ef
Commit
f50f11ef
authored
Jun 05, 2020
by
Sarah Fjelsted Alrøe
🏳️🌈
Browse files
Added clouds. Note new npm run setup script, which should be run alongside npm install.
parent
713f5b51
Changes
5
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
f50f11ef
...
...
@@ -109,3 +109,5 @@ tmp/
temp/
# End of https://www.gitignore.io/api/node
public/git/
\ No newline at end of file
README.md
0 → 100644
View file @
f50f11ef
# Spud Web
## To install
1.
Clone repo and cd
2.
`npm install`
3.
`npm run setup`
## To run
1.
`npm start`
package.json
View file @
f50f11ef
...
...
@@ -5,7 +5,8 @@
"main"
:
"index.js"
,
"scripts"
:
{
"start"
:
"node index.js"
,
"test"
:
"echo
\"
Error: no test specified
\"
&& exit 1"
"test"
:
"echo
\"
Error: no test specified
\"
&& exit 1"
,
"setup"
:
"cd public/git && git clone https://github.com/podocarp/particles.js.git"
},
"repository"
:
{
"type"
:
"git"
,
...
...
public/index.html
View file @
f50f11ef
...
...
@@ -7,7 +7,7 @@
<title>
Spud
</title>
<link
rel=
"stylesheet"
href=
"style.css"
>
<script
defer
src=
"index.js"
></script>
<script
src=
"
https://cdn.jsdelivr.net/npm
/particles.js
@2.0.0
/particles.js"
></script>
<script
src=
"
git
/particles.js/particles.js"
></script>
</head>
<body>
...
...
public/res/cloud-config.json
View file @
f50f11ef
{
"particles"
:
{
"number"
:
{
"value"
:
1
0
,
"value"
:
1
,
"density"
:
{
"enable"
:
false
,
"value_area"
:
800
...
...
@@ -11,7 +11,7 @@
"value"
:
"#ffffff"
},
"shape"
:
{
"type"
:
"
circl
e"
,
"type"
:
"
imag
e"
,
"stroke"
:
{
"width"
:
0
,
"color"
:
"#000000"
...
...
@@ -20,9 +20,9 @@
"nb_sides"
:
5
},
"image"
:
{
"src"
:
"http://wiki.lexisnexis.com/academic/images/f/fb/Itunes_podcast_icon_300.jp
g"
,
"width"
:
100
,
"height"
:
100
"src"
:
[
"img/2/cloud1.png"
,
"img/2/cloud2.png"
,
"img/2/cloud3.png"
,
"img/2/cloud4.png"
,
"img/2/cloud5.pn
g"
]
,
"width"
:
695
,
"height"
:
391
}
},
"opacity"
:
{
...
...
@@ -36,7 +36,7 @@
}
},
"size"
:
{
"value"
:
75
,
"value"
:
256
,
"random"
:
true
,
"anim"
:
{
"enable"
:
false
,
...
...
@@ -54,10 +54,10 @@
},
"move"
:
{
"enable"
:
true
,
"speed"
:
0.
5
,
"speed"
:
0.
1
,
"direction"
:
"left"
,
"random"
:
true
,
"straight"
:
fals
e
,
"straight"
:
tru
e
,
"out_mode"
:
"out"
,
"bounce"
:
false
,
"attract"
:
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment