-
Notifications
You must be signed in to change notification settings - Fork 0
/
external_code.js
42 lines (35 loc) · 967 Bytes
/
external_code.js
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
/*
* Projektaufgabe, Abgabeterim: 21.09.2020, Geosoft 1, SoSe 2020
* @author {Timo Lietmeyer} matr.Nr.: {459169}
* @author {Judith Bresser} matr.Nr.: {459956}
*/
//**various jshint configs**
// jshint esversion: 8
// jshint browser: true
// jshint node: true
// jshint -W117
// jshint -W083
"use strict";
/** @description The Window.print() method starts the printing process
* identical to the menu command for printing in the browser
*
*/
/* https://wiki.selfhtml.org/wiki/JavaScript/Window/print */
function druck() {
window.print();
}
/**
*@desc screen various text fields
*@param i = temporary variable
*@param x = Feature Collection of GeoJSON
*
*/
/* https://www.w3schools.com/w3css/w3css_tabulators.asp */
function openCity(cityName) {
var i;
var x = document.getElementsByClassName("city");
for (i = 0; i < x.length; i++) {
x[i].style.display = "none";
}
document.getElementById(cityName).style.display = "block";
}