Created
October 15, 2010 08:29
-
-
Save 01-Scripts/627845 to your computer and use it in GitHub Desktop.
Unkomprimierte JavaScript-Dateien des 01-Artikelsystems (01module/01article/) www.01-scripts.de/01article.php
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
/* | |
01-Artikelsystem V3 - Copyright 2006-2008 by Michael Lorer - 01-Scripts.de | |
Lizenz: Creative-Commons: Namensnennung-Keine kommerzielle Nutzung-Weitergabe unter gleichen Bedingungen 3.0 Deutschland | |
Weitere Lizenzinformationen unter: http://www.01-scripts.de/lizenz.php | |
Modul: 01article | |
Dateiinfo: JavaScript-Funktionen | |
*/ | |
function change_readonly(elementId){ | |
var temp = document.getElementById(elementId); | |
temp.readOnly = (temp.readOnly == false) ? true : false; | |
} | |
function checkLen(elementId){ | |
var txt = document.getElementById(elementId).value; | |
document.getElementById('zcounter').value= txt.length; | |
} | |
/* 01-Artikelsystem Copyright 2006-2008 by Michael Lorer - 01-Scripts.de */ |
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
/* | |
01-Artikelsystem V3 - Copyright 2006-2008 by Michael Lorer - 01-Scripts.de | |
Lizenz: Creative-Commons: Namensnennung-Keine kommerzielle Nutzung-Weitergabe unter gleichen Bedingungen 3.0 Deutschland | |
Weitere Lizenzinformationen unter: http://www.01-scripts.de/lizenz.php | |
Modul: 01article | |
Dateiinfo: Frontend-BB-Code-JavaScript-Funktion | |
*/ | |
/*BB-Code-Funktion (c) by http://aktuell.de.selfhtml.org/artikel/javascript/bbcode/index.htm */ | |
function bbcinsert(aTag, eTag) { | |
var input = document.forms['post'].elements['comment']; | |
input.focus(); | |
/* für Internet Explorer */ | |
if(typeof document.selection != 'undefined') { | |
/* Einfügen des Formatierungscodes */ | |
var range = document.selection.createRange(); | |
var insText = range.text; | |
range.text = aTag + insText + eTag; | |
/* Anpassen der Cursorposition */ | |
range = document.selection.createRange(); | |
if (insText.length == 0) { | |
range.move('character', -eTag.length); | |
} else { | |
range.moveStart('character', aTag.length + insText.length + eTag.length); | |
} | |
range.select(); | |
} | |
/* für neuere auf Gecko basierende Browser */ | |
else if(typeof input.selectionStart != 'undefined') | |
{ | |
/* Einfügen des Formatierungscodes */ | |
var start = input.selectionStart; | |
var end = input.selectionEnd; | |
var insText = input.value.substring(start, end); | |
input.value = input.value.substr(0, start) + aTag + insText + eTag + input.value.substr(end); | |
/* Anpassen der Cursorposition */ | |
var pos; | |
if (insText.length == 0) { | |
pos = start + aTag.length; | |
} else { | |
pos = start + aTag.length + insText.length + eTag.length; | |
} | |
input.selectionStart = pos; | |
input.selectionEnd = pos; | |
} | |
/* für die übrigen Browser */ | |
else | |
{ | |
/* Abfrage der Einfügeposition */ | |
var pos; | |
var re = new RegExp('^[0-9]{0,3}$'); | |
while(!re.test(pos)) { | |
pos = prompt("Einfügen an Position (0.." + input.value.length + "):", "0"); | |
} | |
if(pos > input.value.length) { | |
pos = input.value.length; | |
} | |
/* Einfügen des Formatierungscodes */ | |
var insText = prompt("Bitte geben Sie den zu formatierenden Text ein:"); | |
input.value = input.value.substr(0, pos) + aTag + insText + eTag + input.value.substr(pos); | |
} | |
} | |
/* 01-Artikelsystem Copyright 2006-2008 by Michael Lorer - 01-Scripts.de */ |
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
/* | |
01-Artikelsystem V3 - Copyright 2006-2008 by Michael Lorer - 01-Scripts.de | |
Lizenz: Creative-Commons: Namensnennung-Keine kommerzielle Nutzung-Weitergabe unter gleichen Bedingungen 3.0 Deutschland | |
Weitere Lizenzinformationen unter: http://www.01-scripts.de/lizenz.php | |
Modul: 01article | |
Dateiinfo: Modulspezifische CSS-Datei | |
*/ | |
b.zwischengesp { | |
font-weight: normal; | |
} | |
b.free_wait { | |
font-weight: normal; | |
color: #BB0000; | |
} | |
b.public { | |
font-weight: normal; | |
color: green; | |
} | |
b.abgelaufen { | |
font-weight: normal; | |
color: blue; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Die Datei javas.js befindet sich im Verzeichnis 01module/01article/templates/