Skip to content

Commit

Permalink
Rework signup pages and several other small improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
thisismeonmounteverest committed May 6, 2024
1 parent 8837c9b commit 1d00da9
Show file tree
Hide file tree
Showing 40 changed files with 2,052 additions and 2,558 deletions.
6 changes: 3 additions & 3 deletions assets/js/signup.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import 'leaflet/dist/leaflet.css';
import {initializeSingleAutoComplete} from './suggest/locations';
import 'leaflet.fullscreen';
import 'leaflet.fullscreen/Control.FullScreen.css';
import { default as rangeslider } from 'rangeslider-pure';
import { default as rangeSlider } from 'rangeslider-pure';

const htmlTag = document.getElementsByTagName('html')[0];
const lang = htmlTag.attributes['lang'].value;
Expand Down Expand Up @@ -84,7 +84,7 @@ function updateValueOutput(value) {
}

const initializeSlider = () => {
return rangeslider.create(slider, {
return rangeSlider.create(slider, {
onInit: function() {
updateValueOutput(0);
},
Expand All @@ -101,7 +101,7 @@ const hostingInterest = document.getElementById('hosting_interest');
const radioHandler = (event) => {
if (event.target.type === 'radio') {
console.log("Clicked: ", event.target.type, event.target.checked, event.target.value);
if (event.target.value === 'no') {
if (event.target.value === 'neverask') {
hostingInterest.classList.remove('u-block');
hostingInterest.classList.add('u-hidden');
} else {
Expand Down
2 changes: 1 addition & 1 deletion assets/js/signup/setlocation.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import {initializeSingleAutoComplete} from '../suggest/locations';

initializeSingleAutoComplete("/suggest/locations/places/exact", 'js-location-picker', '_autocomplete');
initializeSingleAutoComplete("/suggest/locations/places/exact", 'js-location-picker');
Loading

0 comments on commit 1d00da9

Please sign in to comment.