Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
Iotproject
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
Issue 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
ANTO SAGAYA JUSTIN R
Iotproject
Commits
c87ffc51
Commit
c87ffc51
authored
3 weeks ago
by
ANTO SAGAYA JUSTIN R
Browse files
Options
Downloads
Patches
Plain Diff
update data
parent
586c11b3
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
myproject/app.py
+8
-1
8 additions, 1 deletion
myproject/app.py
myproject/template/helloworld.html
+14
-11
14 additions, 11 deletions
myproject/template/helloworld.html
with
22 additions
and
12 deletions
myproject/app.py
+
8
−
1
View file @
c87ffc51
...
@@ -5,7 +5,14 @@ app = Flask(__name__, template_folder='template')
...
@@ -5,7 +5,14 @@ app = Flask(__name__, template_folder='template')
@app.route
(
'
/helloworld
'
)
@app.route
(
'
/helloworld
'
)
def
helloworld
():
def
helloworld
():
return
render_template
(
'
helloworld.html
'
)
d
=
{
"
username
"
:
"
Justin Biber
"
,
"
env
"
:
"
Development
"
,
"
avater
"
:
"
https://git.selfmade.ninja/uploads/-/system/user/avatar/7411/avatar.png?width=800
"
}
return
render_template
(
'
helloworld.html
'
,
data
=
d
)
if
__name__
==
'
__main__
'
:
if
__name__
==
'
__main__
'
:
app
.
run
(
debug
=
True
)
app
.
run
(
debug
=
True
)
This diff is collapsed.
Click to expand it.
myproject/template/helloworld.html
+
14
−
11
View file @
c87ffc51
...
@@ -8,17 +8,25 @@
...
@@ -8,17 +8,25 @@
<link
rel=
"stylesheet"
href=
"https://cdnjs.cloudflare.com/ajax/libs/viewerjs/1.11.7/viewer.css"
integrity=
"sha512-9NawOLzuLE2GD22PJ6IPWXEjPalb/FpdH1qMpgXdaDM+0OfxEV75ZCle6KhZi0vM6ZWvMrNnIZv6YnsL+keVmA=="
crossorigin=
"anonymous"
referrerpolicy=
"no-referrer"
/>
<link
rel=
"stylesheet"
href=
"https://cdnjs.cloudflare.com/ajax/libs/viewerjs/1.11.7/viewer.css"
integrity=
"sha512-9NawOLzuLE2GD22PJ6IPWXEjPalb/FpdH1qMpgXdaDM+0OfxEV75ZCle6KhZi0vM6ZWvMrNnIZv6YnsL+keVmA=="
crossorigin=
"anonymous"
referrerpolicy=
"no-referrer"
/>
<style>
<style>
img
{
img
{
width
:
20
0px
;
width
:
15
0px
;
height
:
20
0px
;
height
:
15
0px
;
}
}
</style>
</style>
</head>
</head>
<body>
<body>
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"alert alert-success"
role=
"alert"
>
Welcome {{ data.username }} , you are in {{ data.env }}
</div>
<ul
id=
"images"
>
<ul
id=
"images"
>
<li><img
src=
"https://th.bing.com/th/id/OIP.d7XoYXNNdLcexb9E1xehCAHaEK?w=278&h=180&c=7&r=0&o=5&dpr=1.3&pid=1.7"
alt=
"Picture 1"
></li>
<br>
<li><img
src=
"https://th.bing.com/th/id/OIP.d7XoYXNNdLcexb9E1xehCAHaEK?w=278&h=180&c=7&r=0&o=5&dpr=1.3&pid=1.7"
alt=
"Picture 1"
></li>
<br>
<li><img
src=
"https://th.bing.com/th/id/OIP.TldVfnF-trAnn4FNSJ42RAHaEK?w=324&h=182&c=7&r=0&o=5&dpr=1.3&pid=1.7"
alt=
"Picture 1"
></li>
<br>
<li><img
src=
"https://th.bing.com/th/id/OIP.TldVfnF-trAnn4FNSJ42RAHaEK?w=324&h=182&c=7&r=0&o=5&dpr=1.3&pid=1.7"
alt=
"Picture 1"
></li>
<br>
<li><img
src=
"https://th.bing.com/th/id/OIP.ysjV0sgOseoA-KELS-qr_AHaEK?w=320&h=180&c=7&r=0&o=5&dpr=1.3&pid=1.7"
alt=
"Picture 1"
></li>
<li><img
src=
"https://th.bing.com/th/id/OIP.ysjV0sgOseoA-KELS-qr_AHaEK?w=320&h=180&c=7&r=0&o=5&dpr=1.3&pid=1.7"
alt=
"Picture 1"
></li>
<br>
<li><img
src=
"{{ data.avater }}"
alt=
"Picture 1"
></li>
</ul>
</ul>
</div>
</div>
...
@@ -27,20 +35,15 @@
...
@@ -27,20 +35,15 @@
<script
src=
"https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.8/dist/umd/popper.min.js"
integrity=
"sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r"
crossorigin=
"anonymous"
></script>
<script
src=
"https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.8/dist/umd/popper.min.js"
integrity=
"sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r"
crossorigin=
"anonymous"
></script>
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/viewerjs/1.11.7/viewer.min.js"
integrity=
"sha512-lZD0JiwhtP4UkFD1mc96NiTZ14L7MjyX5Khk8PMxJszXMLvu7kjq1sp4bb0tcL6MY+/4sIuiUxubOqoueHrW4w=="
crossorigin=
"anonymous"
referrerpolicy=
"no-referrer"
></script>
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/viewerjs/1.11.7/viewer.min.js"
integrity=
"sha512-lZD0JiwhtP4UkFD1mc96NiTZ14L7MjyX5Khk8PMxJszXMLvu7kjq1sp4bb0tcL6MY+/4sIuiUxubOqoueHrW4w=="
crossorigin=
"anonymous"
referrerpolicy=
"no-referrer"
></script>
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/viewerjs/1.11.7/viewer.common.js"
integrity=
"sha512-LlQl0sFUcI1vIDM7mJLlc6a8ED/7OodBOExKGh93wuOhftpuR+LqrihUhDERtnX526QoQqqKWxg6BpMjEibyMw=="
crossorigin=
"anonymous"
referrerpolicy=
"no-referrer"
></script>
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/viewerjs/1.11.7/viewer.common.js"
integrity=
"sha512-LlQl0sFUcI1vIDM7mJLlc6a8ED/7OodBOExKGh93wuOhftpuR+LqrihUhDERtnX526QoQqqKWxg6BpMjEibyMw=="
crossorigin=
"anonymous"
referrerpolicy=
"no-referrer"
></script>
<script>
<script>
// View an image.
// View an image.
const
viewer
=
new
Viewer
(
document
.
getElementById
(
'
images
'
),
{
const
viewer
=
new
Viewer
(
document
.
getElementById
(
'
images
'
),
{
inline
:
true
,
viewed
()
{
viewed
()
{
viewer
.
zoomTo
(
1
);
//
viewer.
hide(
);
},
},
});
});
// Then, show the image by clicking it, or call `viewer.show()`.
// View a list of images.
// Note: All images within the container will be found by calling `element.querySelectorAll('img')`.
const
gallery
=
new
Viewer
(
document
.
getElementById
(
'
images
'
));
// Then, show one image by click it, or call `gallery.show()`.
</script>
</script>
</body>
</body>
</html>
</html>
\ No newline at end of file
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