Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
CCC-Assignment2-Team69
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
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xinjie Lan
CCC-Assignment2-Team69
Commits
7971140b
Commit
7971140b
authored
May 13, 2019
by
unknown
Browse files
Options
Downloads
Patches
Plain Diff
UI
parent
20952a8c
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
web_app_django/tweet/templates/index.html
+33
-29
33 additions, 29 deletions
web_app_django/tweet/templates/index.html
with
33 additions
and
29 deletions
web_app_django/tweet/templates/index.html
+
33
−
29
View file @
7971140b
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
<div
class=
"title-banner"
>
<div
class=
"title-banner"
>
<div
class=
"title-content"
>
<div
class=
"title-content"
>
<p>
The Analysis of the sin of Wrath
</p>
<p>
The Analysis of the sin of Wrath
</p>
<p>
based on tweets across the major cities in
Melbourne
</p>
<p>
based on tweets across the major cities in
Australia
</p>
</div>
</div>
</div>
</div>
...
@@ -43,19 +43,17 @@
...
@@ -43,19 +43,17 @@
{% if cityInfo %}
{% if cityInfo %}
{% for city in cityInfo %}
{% for city in cityInfo %}
{% for city1 in cityTotal %}
{% if city.key == "melbourne" %}
{% if city.key == "melbourne" %}
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
var
melval
=
"
{{city.value}}
"
;
var
melval
=
"
{{city.value}}
"
;
var
melrate
=
"
{{city1.melbourne}}
"
;
</script>
</script>
{% endif %}
{% endif %}
{% if city.key == "sydney" %}
{% if city.key == "sydney" %}
<script>
<script>
var
sydval
=
"
{{city.value}}
"
;
var
sydval
=
"
{{city.value}}
"
;
var
sydrate
=
"
{{city1.sydney}}
"
;
</script>
</script>
{% endif %}
{% endif %}
...
@@ -63,7 +61,6 @@
...
@@ -63,7 +61,6 @@
{% if city.key == "adelaide" %}
{% if city.key == "adelaide" %}
<script>
<script>
var
adeval
=
"
{{city.value}}
"
;
var
adeval
=
"
{{city.value}}
"
;
var
aderate
=
"
{{city1.adelaide}}
"
;
</script>
</script>
{% endif %}
{% endif %}
...
@@ -71,7 +68,6 @@
...
@@ -71,7 +68,6 @@
{% if city.key == "brisbane" %}
{% if city.key == "brisbane" %}
<script>
<script>
var
brival
=
"
{{city.value}}
"
;
var
brival
=
"
{{city.value}}
"
;
var
brirate
=
"
{{city1.brisbane}}
"
;
</script>
</script>
{% endif %}
{% endif %}
...
@@ -79,17 +75,23 @@
...
@@ -79,17 +75,23 @@
{% if city.key == "perth" %}
{% if city.key == "perth" %}
<script>
<script>
var
perval
=
"
{{city.value}}
"
;
var
perval
=
"
{{city.value}}
"
;
var
perrate
=
"
{{city1.perth}}
"
;
</script>
</script>
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
{% endfor %}
<script
src=
"{% static 'js/district.js' %}"
></script>
{% for city1 in cityTotal %}
<script
type=
"text/javascript"
>
var
melrate
=
"
{{city1.melbourne}}
"
;
var
sydrate
=
"
{{city1.sydney}}
"
;
var
aderate
=
"
{{city1.adelaide}}
"
;
var
brirate
=
"
{{city1.brisbane}}
"
;
var
perrate
=
"
{{city1.perth}}
"
;
</script>
{% endfor %}
<script
src=
"{% static 'js/district.js' %}"
></script>
<td>
{{NswCount}}
</td>
<td>
{{NswCount}}
</td>
<script>
<script>
...
@@ -151,24 +153,7 @@
...
@@ -151,24 +153,7 @@
});
});
layer
.
on
(
'
mousemove
'
,
function
(
ev
)
{
// 事件类型
var
type
=
ev
.
type
;
// 当前元素的原始数据
var
rawData
=
ev
.
rawData
;
// 原始鼠标事件
var
originalEvent
=
ev
.
originalEvent
;
openInfoWin
(
map
.
getMap
(),
originalEvent
,
{
'
City
'
:
rawData
.
name
,
'
Hate_Speech_Rate
'
:
rawData
.
rate
});
});
layer
.
on
(
'
mouseleave
'
,
function
(
ev
)
{
closeInfoWin
();
});
layer
.
setData
(
districts
,
{
layer
.
setData
(
districts
,
{
lnglat
:
'
center
'
lnglat
:
'
center
'
...
@@ -196,6 +181,25 @@
...
@@ -196,6 +181,25 @@
shape
:
'
circle
'
shape
:
'
circle
'
});
});
layer0
.
on
(
'
mousemove
'
,
function
(
ev
)
{
// 事件类型
var
type
=
ev
.
type
;
// 当前元素的原始数据
var
rawData
=
ev
.
rawData
;
// 原始鼠标事件
var
originalEvent
=
ev
.
originalEvent
;
openInfoWin
(
map
.
getMap
(),
originalEvent
,
{
'
City
'
:
rawData
.
name
,
'
Hate_Speech_Rate
'
:
rawData
.
rate
});
});
layer0
.
on
(
'
mouseleave
'
,
function
(
ev
)
{
closeInfoWin
();
});
layer0
.
setData
(
districts
,
{
layer0
.
setData
(
districts
,
{
lnglat
:
'
center
'
lnglat
:
'
center
'
});
});
...
...
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