Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
Lab_4
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hosama
Lab_4
Commits
9d9105c9
Commit
9d9105c9
authored
8 years ago
by
hosama
Browse files
Options
Downloads
Patches
Plain Diff
moved these files to 5_effects file
parent
f043ce8b
Branches
master
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
code.html
+0
-43
0 additions, 43 deletions
code.html
code.js
+0
-35
0 additions, 35 deletions
code.js
jquery-3.1.1.js
+0
-10220
0 additions, 10220 deletions
jquery-3.1.1.js
with
0 additions
and
10298 deletions
code.html
deleted
100644 → 0
+
0
−
43
View file @
f043ce8b
<script
src =
"jquery-3.1.1.js"
></script>
<script
src =
"code.js"
></script>
<div
id=
"dropDown"
>
Click to slide down the option buttons
</div>
<button
id =
"Move"
>
Move the square!
</button>
<button
id =
"Hide"
>
Hide the square!
</button>
<button
id =
"Show"
>
Show the square!
</button>
<button
id =
"fadeIn"
>
Fade in and out two more squares!
</button><br><br><br>
<style>
#dropDown
{
padding
:
5px
;
text-align
:
center
;
background-color
:
#e5eecc
;
border
:
solid
1px
#c3c3c3
;
}
#Move
{
padding
:
20px
;
background-color
:
#e5eecc
;
display
:
none
;
}
#Hide
{
padding
:
20px
;
background-color
:
#e5eecc
;
display
:
none
;
}
#Show
{
padding
:
20px
;
background-color
:
#e5eecc
;
display
:
none
;
}
#fadeIn
{
padding
:
20px
;
background-color
:
#e5eecc
;
display
:
none
;
}
</style>
<div
id =
"Styles"
style=
"background:red;height:80px;width:80px;position:absolute;"
><br><br><br><br><br>
<div
id=
"Styles_1"
style=
"width:80px;height:80px;display:none;background-color:blue;"
></div><br>
<div
id=
"Styles_2"
style=
"width:80px;height:80px;display:none;background-color:purple;"
></div><br>
This diff is collapsed.
Click to expand it.
code.js
deleted
100644 → 0
+
0
−
35
View file @
f043ce8b
//When the document is uploaded.
$
(
document
).
ready
(
function
(){
$
(
"
#dropDown
"
).
click
(
function
(){
$
(
"
#Move
"
).
slideToggle
(
"
slow
"
);
$
(
"
#Hide
"
).
slideToggle
(
"
slow
"
);
$
(
"
#Show
"
).
slideToggle
(
"
slow
"
);
$
(
"
#fadeIn
"
).
slideToggle
(
"
slow
"
);
});
//Alligning the square so it would be 250px from the left.
$
(
"
#Move
"
).
click
(
function
(){
$
(
"
#Styles
"
).
animate
({
left
:
'
250px
'
});
});
//Hiding the square.
$
(
"
#Hide
"
).
click
(
function
(){
$
(
"
#Styles
"
).
hide
();
});
//Showing the hidden square
$
(
"
#Show
"
).
click
(
function
(){
$
(
"
#Styles
"
).
show
();
});
//Switching two more square in and out
$
(
"
#fadeIn
"
).
click
(
function
(){
$
(
"
#Styles_1
"
).
fadeToggle
(
1000
);
$
(
"
#Styles_2
"
).
fadeToggle
(
1000
);
});
});
This diff is collapsed.
Click to expand it.
jquery-3.1.1.js
deleted
100644 → 0
+
0
−
10220
View file @
f043ce8b
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment