-
Notifications
You must be signed in to change notification settings - Fork 1
/
ideas.html
156 lines (142 loc) · 6.87 KB
/
ideas.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
---
layout: default
languages:
- gl
- es
permalink: /:language/ideas
subset: index
navigation: false
---
{% include head.html %}
<body>
<div class="page_header">{% include header_single_page.html %}</div>
<div class="main-container page_body">
<section class="contained-gallery">
<div class="container">
<div class="row">
<div class="col-md-12 col-sm-12">
<h1 class="big centered">IDEAS</h1>
<p class="lead">{% t 'ideas.summary' %}</p>
<div class="row">
<div class="idea col-md-6 col-sm-6 col-lg-6">
<h2>{% t 'ideas.item1.title' %}</h2>
<img class="img-responsive center-block" alt="Pesca" src="{{ '/assets/img/ideas/' | append: 'pesca.jpg' |prepend: site.url }}">
<p>{% t 'ideas.item1.description' %}</p>
<a class="comments-load" onclick="loadDisqus($(this), 'PESCA', 'PESCA');">
Mostrar ideas
</a>
<noscript>
Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
</noscript>
</div>
<div class="idea col-md-6 col-sm-6 col-lg-6">
<h2>{% t 'ideas.item2.title' %}</h2>
<img class="img-responsive center-block" alt="Offshore" src="{{ '/assets/img/ideas/' | append: 'offshore.jpg' |prepend: site.url }}">
<p>{% t 'ideas.item1.description' %}</p>
<a class="comments-load" onclick="loadDisqus($(this), 'OFFSHORE', 'OFFSHORE');">
Mostrar ideas
</a>
<noscript>
Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
</noscript>
</div>
</div>
<div class="row">
<div class="idea col-md-6 col-sm-6 col-lg-6">
<h2>{% t 'ideas.item3.title' %}</h2>
<img class="img-responsive center-block" alt="Estaleiros" src="{{ '/assets/img/ideas/' | append: 'estaleiros.jpg' |prepend: site.url }}">
<p>{% t 'ideas.item3.description' %}</p>
<a class="comments-load" onclick="loadDisqus($(this), 'ESTALEIROS', 'ESTALEIROS');">
Mostrar ideas
</a>
<noscript>
Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
</noscript>
</div>
<div class="idea col-md-6 col-sm-6 col-lg-6">
<h2>{% t 'ideas.item4.title' %}</h2>
<img class="img-responsive center-block" alt="Transporte portuario" src="{{ '/assets/img/ideas/' | append: 'porto.jpg' |prepend: site.url }}">
<p>{% t 'ideas.item4.description' %}</p>
<a class="comments-load" onclick="loadDisqus($(this), 'TRANSPORTE E PORTUARIO', 'TRANSPORTE E PORTUARIO');">
Mostrar ideas
</a>
<noscript>
Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
</noscript>
</div>
</div>
<div class="row">
<div class="idea col-md-6 col-sm-6 col-lg-6">
<h2>{% t 'ideas.item5.title' %}</h2>
<img class="img-responsive center-block" alt="Estaleiros" src="{{ '/assets/img/ideas/' | append: 'marisqueo.jpg' |prepend: site.url }}">
<p>{% t 'ideas.item5.description' %}</p>
<a class="comments-load" onclick="loadDisqus($(this), 'MARISQUEO', 'MARISQUEO');">
Mostrar ideas
</a>
<noscript>
Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
</noscript>
</div>
<div class="idea col-md-6 col-sm-6 col-lg-6">
<h2>{% t 'ideas.item6.title' %}</h2>
<img class="img-responsive center-block" alt="Transporte portuario" src="{{ '/assets/img/ideas/' | append: 'outros.jpg' |prepend: site.url }}">
<p>{% t 'ideas.item6.description' %}</p>
<a class="comments-load" onclick="loadDisqus($(this), 'OUTROS', 'OUTROS');">
Mostrar ideas
</a>
<noscript>
Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
</noscript>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
{% include footer.html %}
{% include js.html %}
<script type="text/javascript">
// Global variables needed by Disqus. The identifier and url should be different for each comment thread.
var disqus_shortname = 'hacksb';
var disqus_identifier;
var disqus_url;
// Loads the Disqus JS file that will create the comment form and threads.
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js'; // Found in disqus.js script
$('head').append(dsq);
// Called in each location you want to show the thread.
// Disqus searches for 'disqus-thread' elements and uses the first one it finds so to
// overcome this, the function will clear any previous comment threads (by finding 'comments-load' elements)
//
function loadDisqus(element, postTitle, postUrlTag) {
var identifier = postTitle;
// Including the hashbang ('/#!') is important.
var url = window.location.origin + '/#!' + postUrlTag;
var disqus_identifier = identifier;
var disqus_url = url;
if (window.DISQUS) {
// Horrible, but jQuery wasn't removing the div elements fully
$( ".comments-load" ).each(function() {
var len = this.childNodes.length;
for(var i = 0; i < len; i++)
{
if (this.childNodes[i].tagName == "DIV") {
this.removeChild(this.childNodes[i]);
}
}
});
$(element).append('<div class="disqus-thread" id="disqus_thread"></div>');
/** if Disqus exists, call it's reset method with new parameters **/
DISQUS.reset({
reload: true,
config: function () {
//important to convert it to string
this.page.identifier = identifier.toString();
this.page.url = url;
}
});
}
};
</script>
</body>