Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
F
Farse news IR project
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
9831029
Farse news IR project
Commits
3dc17446
Commit
3dc17446
authored
2 years ago
by
Haj Rezvan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change Search background to google background.
parent
d3bb5264
master
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
62 additions
and
38 deletions
+62
-38
index.html
templates/index.html
+62
-38
No files found.
templates/index.html
View file @
3dc17446
<!DOCTYPE html>
<html
lang=
"en"
xmlns=
"http://www.w3.org/1999/html"
>
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<meta
charset=
"UTF-8"
/>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<title>
Document
</title>
<style
type=
"text/css"
>
.box
{
width
:
50%
;
margin-left
:
10%
;
margin-top
:
1rem
;
font
:
icon
;
font-size
:
1rem
;
}
<!-- Bootstrap CSS -->
<link
href=
"https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css"
rel=
"stylesheet"
integrity=
"sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC"
crossorigin=
"anonymous"
>
<link
href=
"../static/file.css"
rel=
"stylesheet"
>
p
{
display
:
-webkit-box
;
-webkit-line-clamp
:
2
;
-webkit-box-orient
:
vertical
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
margin
:
0
;
color
:
#555
;
}
<title>
موتور جست و جوی فارس
</title>
a
{
text-decoration
:
none
;
font-size
:
1.2rem
;
}
</style>
</head>
<body>
<h1>
موتور جست و جوی فارس
</h1>
<form
action=
"{{ url_for('index') }}"
method=
"POST"
>
<h4>
عبارت خود را برای جست و جو وارد کنید
</h4>
<label>
<input
type=
"text"
name=
"query"
/>
</label><br>
<input
type=
"submit"
name=
"submit"
value=
"جست و جو"
class=
"mt-1"
>
</form>
<table
id=
"results"
class=
"table table-striped table-hover ms-1 me-1"
>
<thead
class=
"table-light"
>
<tr>
<th
scope=
"row"
style=
"font-family: 'B Titr',monospace"
>
عنوان
</th>
<th
scope=
"row"
style=
"font-family: 'B Titr',monospace"
>
گزیده
</th>
<th
scope=
"row"
style=
"font-family: 'B Titr',monospace"
>
آدرس
</th>
</tr>
</thead>
<tbody>
<div>
<img
src=
" {{ url_for('static', filename='amirkabir.png') }}"
style=
"width: 7%"
alt=
""
/>
<input
style=
"
border-radius: 1rem;
width: 50%;
height: 2rem;
outline: none;
border: 1px solid #8080804a;
margin-left: 2rem;
position: absolute;
top: 1rem;
box-shadow: 0 2px 5px 1px rgba(64, 60, 67, 0.16);
padding: 0 1rem;
"
type=
"text"
name=
""
id=
""
/>
<img
src=
"{{ url_for('static', filename='farsnewslogo.png') }}"
style=
"width: 17%; position: absolute; right: 2rem; top: 1rem"
alt=
""
/>
<hr
style=
"color: #80808024"
/>
{% for row in data %}
<tr
class=
"text-light"
>
<td
class=
"ellipsis"
>
{{ row[1] }}
</td>
<td
class=
"content"
>
{{ row[2] }}
</td>
<td
class=
"ellipsis"
>
{{ row[3] }}
</td>
</tr>
<div
class=
"box"
>
<span>
{{ row[3] }}
</span>
<br/>
<a
href=
{{
row
[
3
]
}}
>
{{ row[1] }}
</a>
<p>
{{ row[2] }}
</p>
</div>
{% endfor %}
</tbody>
</table>
</div>
</body>
</html>
\ No newline at end of file
</html>
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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