This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.hover(function (e) { | |
this.animate({ | |
fill: '#0a4a7a' | |
}, 2); | |
var kommunenavn = paths[arr[this.id]].name; | |
if (e.pageX || e.pageY) { | |
var leftVal = e.pageX; | |
var topVal = e.pageY; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ul | |
{ | |
list-style: none; | |
padding: 0; | |
margin: 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#divName').click(function() { | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var options_departments = '<option>The first option goes here<\/option>'; | |
$.each(banks, function(i,x){ | |
options_departments += '<option value="' + x.name + '">' + x.name + '<\/option>'; | |
}); | |
$("select#divName", this).html(options_departments); | |
$("select#divName", this).change(function(){ | |
var index = $(this).get(0).selectedIndex; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function clearText(field){ | |
if (field.defaultValue == field.value) {field.value = '';} | |
else if (field.value == '') field.value = field.defaultValue; | |
} | |
<input type="text" size="25" id="test" name="test" value="indtasningsfelt" onFocus="clearText(this)" onBlur="clearText(this)"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#checkIt').click(function() { | |
if(this.value === 'notChecked'){ | |
$('#educationCheckbox :checkbox').each(function() { | |
this.checked = true; }); | |
$('#checkIt').val('checked').html('Fjern alle'); | |
} | |
else{ | |
$('#educationCheckbox :checkbox').each(function() { | |
this.checked = false; }); | |
$('#checkIt').val("notChecked").html('Vælg alle'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//makes it possible to check checkbox by clicking the associated text. | |
$('.checkboxes').click(function(event) { | |
if (event.target.type !== 'checkbox') { | |
$(':checkbox', this).trigger('click'); | |
} | |
}); |