Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document provenance #604

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 38 additions & 16 deletions webflow/static/webflow/css/components.css
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ html[data-w-dynpage] [data-w-cloak] {
background-attachment: scroll;
background-color: transparent;
box-shadow: none;
opacity: 1.0;
opacity: 1;
transform: none;
transition: none;
direction: ltr;
Expand Down Expand Up @@ -167,7 +167,6 @@ html[data-w-dynpage] [data-w-cloak] {
position: fixed !important;
display: inline-block !important;
visibility: visible !important;
opacity: 1 !important;
z-index: 2147483647 !important;
top: auto !important;
right: 12px !important;
Expand All @@ -178,7 +177,7 @@ html[data-w-dynpage] [data-w-cloak] {
border-radius: 3px !important;
padding: 6px 8px 6px 6px !important;
font-size: 12px !important;
opacity: 1.0 !important;
opacity: 1 !important;
line-height: 14px !important;
text-decoration: none !important;
transform: none !important;
Expand Down Expand Up @@ -297,8 +296,8 @@ fieldset {
border: 0;
}
button,
html input[type='button'],
input[type='reset'] {
[type='button'],
[type='reset'] {
border: 0;
cursor: pointer;
-webkit-appearance: button;
Expand Down Expand Up @@ -331,7 +330,7 @@ label {
padding: 8px 12px;
margin-bottom: 10px;
font-size: 14px;
line-height: 1.428571429;
line-height: 1.42857143;
color: #333333;
vertical-align: middle;
background-color: #ffffff;
Expand Down Expand Up @@ -366,6 +365,13 @@ label {
fieldset[disabled] .w-input,
fieldset[disabled] .w-select {
cursor: not-allowed;
}
.w-input[disabled]:not(.w-input-disabled),
.w-select[disabled]:not(.w-input-disabled),
.w-input[readonly],
.w-select[readonly],
fieldset[disabled]:not(.w-input-disabled) .w-input,
fieldset[disabled]:not(.w-input-disabled) .w-select {
background-color: #eeeeee;
}
textarea.w-input,
Expand Down Expand Up @@ -831,7 +837,7 @@ textarea.w-select {
top: 50%;
left: 0;
border: solid transparent;
content: " ";
content: ' ';
height: 0;
width: 0;
position: absolute;
Expand Down Expand Up @@ -871,7 +877,7 @@ textarea.w-select {
top: 100%;
left: 50%;
border: solid transparent;
content: " ";
content: ' ';
height: 0;
width: 0;
position: absolute;
Expand Down Expand Up @@ -920,6 +926,16 @@ textarea.w-select {
display: none !important;
-webkit-appearance: none;
}
.w-background-video--control {
position: absolute;
bottom: 1em;
right: 1em;
background-color: transparent;
padding: 0;
}
.w-background-video--control > [hidden] {
display: none !important;
}
.w-slider {
position: relative;
height: 300px;
Expand Down Expand Up @@ -1264,7 +1280,7 @@ textarea.w-select {
right: 0;
bottom: 0;
left: 0;
padding: .5em 1em;
padding: 0.5em 1em;
background: rgba(0, 0, 0, 0.4);
text-align: left;
text-overflow: ellipsis;
Expand All @@ -1288,8 +1304,8 @@ textarea.w-select {
background-repeat: no-repeat;
background-position: center;
cursor: pointer;
-webkit-transition: all .3s;
transition: all .3s;
-webkit-transition: all 0.3s;
transition: all 0.3s;
}
.w-lightbox-left {
display: none;
Expand Down Expand Up @@ -1350,7 +1366,7 @@ textarea.w-select {
/* 2 */
}
.w-lightbox-active {
opacity: .3;
opacity: 0.3;
}
.w-lightbox-thumbnail {
position: relative;
Expand Down Expand Up @@ -1394,8 +1410,8 @@ textarea.w-select {
margin-left: -20px;
border: 5px solid rgba(0, 0, 0, 0.4);
border-radius: 50%;
-webkit-animation: spin .8s infinite linear;
animation: spin .8s infinite linear;
-webkit-animation: spin 0.8s infinite linear;
animation: spin 0.8s infinite linear;
}
.w-lightbox-spinner:after {
content: "";
Expand Down Expand Up @@ -1443,10 +1459,10 @@ textarea.w-select {
.w-lightbox-left,
.w-lightbox-right {
display: block;
opacity: .5;
opacity: 0.5;
}
.w-lightbox-close {
opacity: .8;
opacity: 0.8;
}
.w-lightbox-control:hover {
opacity: 1;
Expand Down Expand Up @@ -1808,3 +1824,9 @@ textarea.w-select {
.w-condition-invisible {
display: none !important;
}
.wf-layout-layout {
display: grid !important;
}
.wf-layout-cell {
display: flex !important;
}
29 changes: 14 additions & 15 deletions webflow/static/webflow/js/municipalmoney.js
Original file line number Diff line number Diff line change
Expand Up @@ -14904,8 +14904,6 @@ function is(x, y) {
// Added the nonzero y check to make Flow happy, but it is redundant
return x !== 0 || y !== 0 || 1 / x === 1 / y;
} // Step 6.a: NaN == NaN


return x !== x && y !== y;
}
/**
Expand Down Expand Up @@ -19708,14 +19706,17 @@ Webflow.define('forms', module.exports = function ($, _) {
// The file upload Input is not stylable by the designer, so we are
// going to pretend the Label is the input. ¯\_(ツ)_/¯

$label.on('click keydown', function (e) {
if (e.type === 'keydown' && e.which !== 13 && e.which !== 32) {
return;
}
if (!inApp) {
$label.on('click keydown', function (e) {
if (e.type === 'keydown' && e.which !== 13 && e.which !== 32) {
return;
}

e.preventDefault();
$input.click();
});
} // Both of these are added through CSS

e.preventDefault();
$input.click();
}); // Both of these are added through CSS

$label.find('.w-icon-file-upload-icon').attr('aria-hidden', 'true');
$removeEl.find('.w-icon-file-upload-remove').attr('aria-hidden', 'true');
Expand Down Expand Up @@ -19838,15 +19839,13 @@ Webflow.define('forms', module.exports = function ($, _) {
}

function signFile(file, cb) {
var payload = {
var payload = new URLSearchParams({
name: file.name,
size: file.size
};
});
$.ajax({
type: 'POST',
url: signFileUrl,
data: payload,
dataType: 'json',
type: 'GET',
url: "".concat(signFileUrl, "?").concat(payload),
crossDomain: true
}).done(function (data) {
cb(null, data);
Expand Down
18 changes: 13 additions & 5 deletions webflow/templates/webflow/help.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% load static %}
{% load staticfiles pipeline json_script_escape %}
<!DOCTYPE html><!-- Last Published: Thu Apr 14 2022 12:15:08 GMT+0000 (Coordinated Universal Time) --><html data-wf-page="6200e32ae569ed2f9e14bbf9" data-wf-site="5fb612add2bb520fe31c5c1a"><head>
<!DOCTYPE html><!-- Last Published: Wed Jul 27 2022 13:34:37 GMT+0000 (Coordinated Universal Time) --><html data-wf-page="6200e32ae569ed2f9e14bbf9" data-wf-site="5fb612add2bb520fe31c5c1a"><head>
<meta charset="utf-8">
<title>{{ page_title }}</title>
<meta content="Learn about Municipal Money, the municipal budget process and our budget data" name="description">
Expand Down Expand Up @@ -401,11 +401,16 @@ <h6 class="small-heading"><span class="search__result-value">0</span> Results</h
</div>
</div>
</div>
<div class="site-notice">{% for notice in site_notices %}
<div class="container">
<div class="site-notice__text">{{ notice.content | safe }}</div>
<div class="site-notice hidden">
<div class="container is--site-notice">
<div class="site-notice__row">
<div class="site-notice__icon">
<div class="fas fa-spinner"></div>
</div>
<p class="site-notice__text">Loading...</p>
</div>
</div>
</div>
{% endfor %}</div>
<div class="section section--hero">
<div class="plate plate--dots plate--gradient"></div>
<div class="container">
Expand Down Expand Up @@ -667,6 +672,9 @@ <h5 class="expand-block__trigger_heading">How was the data collected?</h5>
<div class="expand-block__content_inner">
<div class="w-richtext">
<p>The data is provided at regular intervals by all the individual municipalities in South Africa to National Treasury and housed on their Local Government Database and Reporting System (LGDRS).</p>
<p>
<a href="https://municipaldata.treasury.gov.za/docs#where-from">Read more.</a>
</p>
</div>
</div>
</div>
Expand Down
15 changes: 10 additions & 5 deletions webflow/templates/webflow/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% load static %}
{% load staticfiles pipeline json_script_escape %}
<!DOCTYPE html><!-- Last Published: Thu Apr 14 2022 12:15:08 GMT+0000 (Coordinated Universal Time) --><html data-wf-page="6200e32ae569ed1bcc14bbed" data-wf-site="5fb612add2bb520fe31c5c1a"><head>
<!DOCTYPE html><!-- Last Published: Wed Jul 27 2022 13:34:37 GMT+0000 (Coordinated Universal Time) --><html data-wf-page="6200e32ae569ed1bcc14bbed" data-wf-site="5fb612add2bb520fe31c5c1a"><head>
<meta charset="utf-8">
<title>{{ page_title }}</title>
<meta content="An initiative of the National Treasury, which has collected extensive municipal financial data over several years and aims to share it with the public." name="description">
Expand Down Expand Up @@ -401,11 +401,16 @@ <h6 class="small-heading"><span class="search__result-value">0</span> Results</h
</div>
</div>
</div>
<div class="site-notice">{% for notice in site_notices %}
<div class="container">
<div class="site-notice__text">{{ notice.content | safe }}</div>
<div class="site-notice hidden">
<div class="container is--site-notice">
<div class="site-notice__row">
<div class="site-notice__icon">
<div class="fas fa-spinner"></div>
</div>
<p class="site-notice__text">Loading...</p>
</div>
</div>
</div>
{% endfor %}</div>
<div class="section section--home-hero">
<div class="container">
<div class="layout-grid layout-grid--2-col">
Expand Down
2 changes: 1 addition & 1 deletion webflow/templates/webflow/locate.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% load static %}
{% load staticfiles pipeline json_script_escape %}
<!DOCTYPE html><!-- Last Published: Thu Apr 14 2022 12:15:08 GMT+0000 (Coordinated Universal Time) --><html data-wf-page="6200e32ae569ed27b414bbfb" data-wf-site="5fb612add2bb520fe31c5c1a"><head>
<!DOCTYPE html><!-- Last Published: Wed Jul 27 2022 13:34:37 GMT+0000 (Coordinated Universal Time) --><html data-wf-page="6200e32ae569ed27b414bbfb" data-wf-site="5fb612add2bb520fe31c5c1a"><head>
<meta charset="utf-8">
<title>{{ page_title }}</title>
<meta content="{{ page_title }}" property="og:title">
Expand Down
15 changes: 10 additions & 5 deletions webflow/templates/webflow/muni-profile.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% load static %}
{% load staticfiles pipeline json_script_escape %}
<!DOCTYPE html><!-- Last Published: Thu Apr 14 2022 12:15:08 GMT+0000 (Coordinated Universal Time) --><html data-wf-page="6200e32ae569ed269f14bbfc" data-wf-site="5fb612add2bb520fe31c5c1a"><head>
<!DOCTYPE html><!-- Last Published: Wed Jul 27 2022 13:34:37 GMT+0000 (Coordinated Universal Time) --><html data-wf-page="6200e32ae569ed269f14bbfc" data-wf-site="5fb612add2bb520fe31c5c1a"><head>
<meta charset="utf-8">
<title>{{ page_title }}</title>
<meta content="{{ page_title }}" property="og:title">
Expand Down Expand Up @@ -396,11 +396,16 @@ <h6 class="small-heading"><span class="search__result-value">0</span> Results</h
</div>
</div>
</div>
<div class="site-notice">{% for notice in site_notices %}
<div class="container">
<div class="site-notice__text">{{ notice.content | safe }}</div>
<div class="site-notice hidden">
<div class="container is--site-notice">
<div class="site-notice__row">
<div class="site-notice__icon">
<div class="fas fa-spinner"></div>
</div>
<p class="site-notice__text">Loading...</p>
</div>
</div>
</div>
{% endfor %}</div>
<div class="section section--map">
<div class="profile-map"></div>
<div class="container container--position-none">
Expand Down
15 changes: 10 additions & 5 deletions webflow/templates/webflow/terms.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% load static %}
{% load staticfiles pipeline json_script_escape %}
<!DOCTYPE html><!-- Last Published: Thu Apr 14 2022 12:15:08 GMT+0000 (Coordinated Universal Time) --><html data-wf-page="6200e32ae569ed65be14bc07" data-wf-site="5fb612add2bb520fe31c5c1a"><head>
<!DOCTYPE html><!-- Last Published: Wed Jul 27 2022 13:34:37 GMT+0000 (Coordinated Universal Time) --><html data-wf-page="6200e32ae569ed65be14bc07" data-wf-site="5fb612add2bb520fe31c5c1a"><head>
<meta charset="utf-8">
<title>{{ page_title }}</title>
<meta content="{{ page_title }}" property="og:title">
Expand Down Expand Up @@ -394,11 +394,16 @@ <h6 class="small-heading"><span class="search__result-value">0</span> Results</h
</div>
</div>
</div>
<div class="site-notice">{% for notice in site_notices %}
<div class="container">
<div class="site-notice__text">{{ notice.content | safe }}</div>
<div class="site-notice hidden">
<div class="container is--site-notice">
<div class="site-notice__row">
<div class="site-notice__icon">
<div class="fas fa-spinner"></div>
</div>
<p class="site-notice__text">Loading...</p>
</div>
</div>
</div>
{% endfor %}</div>
<div class="section section--hero">
<div class="plate plate--dots plate--gradient"></div>
<div class="container">
Expand Down