Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Portfolio CUI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Ariele Luciano Sgheiza
Portfolio CUI
Commits
fba065ed
Commit
fba065ed
authored
4 years ago
by
Luca Silly
Browse files
Options
Downloads
Patches
Plain Diff
axios
parent
27948ea9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#20996
failed
4 years ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
index.html
+8
-5
8 additions, 5 deletions
index.html
test.js
+7
-12
7 additions, 12 deletions
test.js
with
15 additions
and
17 deletions
index.html
+
8
−
5
View file @
fba065ed
...
...
@@ -5,7 +5,8 @@
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<link
rel=
"stylesheet"
href=
"index.css"
>
<script
src=
"test.js"
></script>
<script
defer
src=
"https://use.fontawesome.com/releases/v5.14.0/js/all.js%22%3E"
></script>
<script
defer
src=
"https://use.fontawesome.com/releases/v5.14.0/js/all.js"
></script>
<script
src=
"https://unpkg.com/axios/dist/axios.min.js"
></script>
<title>
CUI Portfolio
</title>
</head>
...
...
@@ -17,8 +18,8 @@
</div>
<div
id=
"chercher"
>
<input
type=
"text"
placeholder=
"Cherchez un projet..."
id=
"search"
>
<button
type=
"submit"
class=
"searchButton"
id=
"submit"
>
<i
class=
"fas fa-search"
></i>
<button
type=
"submit"
class=
"searchButton"
id=
"submit"
onclick=
"caca()"
>
<i
class=
"fas fa-search"
></i>
</button>
</div>
<div
class=
"header-left"
>
...
...
@@ -30,8 +31,10 @@
</div>
</header>
<p
id=
"prout"
>
t
</p>
<span
id=
"test"
></span>
<span
id=
"test"
>
t
</span>
</body>
</html>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
test.js
+
7
−
12
View file @
fba065ed
var
t
=
"
test
"
;
document
.
documentElement
.
getElementById
(
"
prout
"
).
innerHTML
=
foo
;
const
axios
=
require
(
'
axios
'
);
let
test
=
""
;
axios
.
get
(
'
/test?ID=1
'
)
.
then
(
function
(
response
){
test
=
response
console
.
log
(
response
);
});
function
caca
(){
axios
.
get
(
'
/test?ID=1
'
)
.
then
(
function
(
response
){
document
.
getElementById
(
"
test
"
).
innerHTML
=
response
;
console
.
log
(
response
);
});
}
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