-
- {% trans "Want to tell the world about this? Download this image to easily share on social media or for a beautiful presentation!" %}
-
+
{% trans "Want to tell the world about this? Download this image to easily share on social media or for a beautiful presentation!" %}
![](#)
@@ -257,25 +349,19 @@
-
-
-
-
+
+
+
+
{% if org|config:"has_jobs" %}
-
+
{% endif %}
@@ -823,14 +854,10 @@
{% if show_login %}
{% if request.user and request.user.is_authenticated %}
+ class="{% if is_rtl_org %}mr-4{% else %}ml-4{% endif %} hover:text-gray-750 flex-initial py-menu">{% trans "Logout" %}
{% else %}
+ class="{% if is_rtl_org %}mr-4{% else %}ml-4{% endif %} hover:text-gray-750 flex-initial py-menu">{% trans "Login" %}
{% endif %}
{% endif %}
@@ -859,30 +886,44 @@
-
+
-
+
-
+
-
+
{% endcompress %}
-
+
{% if org and org|config:"google_tracking_id" %}
{% endif %}
{% block script %}
@@ -893,7 +934,7 @@
window.string_Polled = "{% trans "Polled" %}";
window.string_Reporters = "{% trans "Reporters" %}";
window.string_TopRegion = "{% trans "Top Region" %}";
-
+
Highcharts.setOptions({
lang: {
months: [
@@ -926,61 +967,63 @@
],
}
});
-
+
// country menu toggling
- $("#countries-toggler").click(function(){
+ $("#countries-toggler").click(function() {
$("#countries").toggleClass("open");
});
- $("#countries-closer").click(function(){
+ $("#countries-closer").click(function() {
$("#countries").removeClass("open");
});
-
- $("#languages-toggler").click(function(){
+
+ $("#languages-toggler").click(function() {
$(this).toggleClass("open");
});
-
+
$(".export-modal-close").on('click', function() {
$(".export-modal").addClass('hidden');
});
-
+
$(".mobile-accordion").on('click', function() {
$(this).toggleClass('open');
})
-
-
+
+
$(".screenshot-share").on("click", function() {
- var eltID= $(this).attr("data-screen-id");
+ var eltID = $(this).attr("data-screen-id");
$(".export-modal-progress").show();
$(".export-modal-content").hide();
-
+
$('.export-modal').toggleClass('hidden');
- $('.modal-content').offset({top: $(window).scrollTop() + 150})
+ $('.modal-content').offset({
+ top: $(window).scrollTop() + 150
+ })
var region = document.body.querySelector("#" + eltID);
-
+
html2canvas(region).then(canvas => {
var imageData = canvas.toDataURL("image/png");
$("img.screenshot-rendered").attr("src", imageData);
$("a.download-screenshot").attr("download", "ureport-screenshare-" + eltID + Date.now() + ".png")
$("a.download-screenshot").attr("href", imageData);
-
+
$(".export-modal-progress").hide();
$(".export-modal-content").show();
});
});
-
- $(".dropdown-button").on('click', function(event){
+
+ $(".dropdown-button").on('click', function(event) {
event.stopPropagation();
event.preventDefault();
-
- if($(this).parent().children(".dropdown-content").hasClass("hidden")) {
+
+ if ($(this).parent().children(".dropdown-content").hasClass("hidden")) {
$(".dropdown-content").addClass("hidden");
$(this).parent().children(".dropdown-content").removeClass("hidden");
} else {
$(this).parent().children(".dropdown-content").addClass("hidden");
}
-
+
});
-
+
var slideout = new Slideout({
'panel': document.getElementById('mobile-sliding-panel'),
'menu': document.getElementById('mobile-menu-container'),
@@ -988,19 +1031,19 @@
'tolerance': 70,
'side': 'right',
});
-
+
// mobile menu toggling
//$("#mobile-menu-toggler").click(function(){
// slideout.toggle();
//});
-
+
// Toggle button
document.querySelector('#mobile-menu-toggler').addEventListener('click', function() {
//$("#mobile-menu-container").toggleClass("open");
$("#mobile-menu-toggler").children().toggleClass("hidden");
slideout.toggle();
});
-
+
// initialize our animations
AOS.init({
"duration": 1200,