Commit 1d85bf50 authored by Florian Barth's avatar Florian Barth
Browse files

external js

parent 4ec19481
......@@ -49,7 +49,7 @@
<span data-template="lang:translate" data-template-content="arrowMap"/>
</label>
-->
<label class="btn btn-primary">
<label class="btn btn-primary active">
<input type="radio" name="map_button" value="europeMap" autocomplete="off"/>
<span data-template="lang:translate" data-template-content="europeMap" checked="checked"/>
</label>
......@@ -72,39 +72,7 @@
<div id="mapid" class="arch-content arch-content-margin">
<script>
//var button_value = $("input[name='map_button']:checked").attr("value");
var path = "/exist/apps/sade-architrave/templates/paris-project/js/europeMap.js"
$.ajax({
type: "GET",
url: path,
dataType: "script"
});
$("input[name='map_button']").change(function(){
// LOAD *CHANGED* VALUES
map.remove();
var button_value = $("input[name='map_button']:checked").attr("value");
//console.log(button_value)
if (button_value == "europeMap") {
console.log(button_value)
var path = "/exist/apps/sade-architrave/templates/paris-project/js/europeMap.js"
}
if (button_value == "parisMap") {
console.log(button_value)
var path = "/exist/apps/sade-architrave/templates/paris-project/js/parisMap.js"
}
$.ajax({
type: "GET",
url: path,
dataType: "script"
});
});
</script>
<script src="templates/js/map_integration.js"></script>
</div>
<!--<script src="/exist/apps/sade-architrave/templates/paris-project/js/europeMap.js"/>-->
......
var path = "/exist/apps/sade-architrave/templates/paris-project/js/europeMap.js"
$.ajax({
type: "GET",
url: path,
dataType: "script"
});
$("input[name='map_button']").change(function(){
// LOAD *CHANGED* VALUES
map.remove();
var button_value = $("input[name='map_button']:checked").attr("value");
//console.log(button_value)
if (button_value == "europeMap") {
console.log(button_value)
var path = "/exist/apps/sade-architrave/templates/paris-project/js/europeMap.js"
}
if (button_value == "parisMap") {
console.log(button_value)
var path = "/exist/apps/sade-architrave/templates/paris-project/js/parisMap.js"
}
$.ajax({
type: "GET",
url: path,
dataType: "script"
});
});
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment