Browse Source

removed unneccessary stuff left from the old template

Natenom/support-murmur-13-1446181288462
Michael Ziegler 16 years ago
parent
commit
68214ea6a0
  1. BIN
      htdocs/grafs/shadow.png
  2. 50
      htdocs/js/ftod.js
  3. 4241
      htdocs/js/lib/jquery-1.3.js
  4. 19
      htdocs/js/lib/jquery-1.3.min.js
  5. 144
      htdocs/js/minmax.js
  6. 119
      htdocs/layout.css
  7. 35
      template/base.htm
  8. 2
      template/mumble/content.htm

BIN
htdocs/grafs/shadow.png

Before

Width: 250  |  Height: 175  |  Size: 4.5 KiB

50
htdocs/js/ftod.js

@ -1,50 +0,0 @@
//filler text on demand
// http://web-graphics.com/mtarchive/001667.php
var words=new Array('lorem','ipsum','dolor','sit','amet','consectetuer','adipiscing','elit','suspendisse','eget','diam','quis','diam','consequat','interdum');
function AddFillerLink(){
if(!document.getElementById || !document.createElement) return;
var i,l;
for(i=0;i<arguments.length;i++){
if (document.getElementById(arguments[i])) { /* Check elements exists - add Reinhard Hiebl */
l=document.createElement("a");
l.href="#";
l.appendChild(document.createTextNode("Add Text"));
l.onclick=function(){AddText(this);return(false)};
document.getElementById(arguments[i]).appendChild(l);
b=document.createTextNode(" | ");
document.getElementById(arguments[i]).appendChild(b);
r=document.createElement("a");
r.href="#";
r.appendChild(document.createTextNode("Remove Text"));
r.onclick=function(){RemoveText(this);return(false)};
document.getElementById(arguments[i]).appendChild(r);
}
}
}
function AddText(el){
var s="",n,i;
n=RandomNumber(20,80);
for(i=0;i<n;i++)
s+=words[RandomNumber(0,words.length-1)]+" ";
var t=document.createElement("p");
t.setAttribute('class','added');
t.appendChild(document.createTextNode(s));
el.parentNode.insertBefore(t,el);
}
function RemoveText(el){
var parent = el.parentNode;
for(var i=0;i<parent.childNodes.length;i++) {
var para = parent.childNodes[i];
if(para.nodeName == "P" && para.getAttribute('class')=='added') {
parent.removeChild(para);
break;
}
}
}
function RandomNumber(n1,n2){
return(Math.floor(Math.random()*(n2-n1))+n1);
}

4241
htdocs/js/lib/jquery-1.3.js
File diff suppressed because it is too large
View File

19
htdocs/js/lib/jquery-1.3.min.js
File diff suppressed because it is too large
View File

144
htdocs/js/minmax.js

@ -1,144 +0,0 @@
// minmax.js: make IE5+/Win support CSS min/max-width/height
// version 1.0, 08-Aug-2003
// written by Andrew Clover <and@doxdesk.com>, use freely
/*@cc_on
@if (@_win32 && @_jscript_version>4)
var minmax_elements;
minmax_props= new Array(
new Array('min-width', 'minWidth'),
new Array('max-width', 'maxWidth'),
new Array('min-height','minHeight'),
new Array('max-height','maxHeight')
);
// Binding. Called on all new elements. If <body>, initialise; check all
// elements for minmax properties
function minmax_bind(el) {
var i, em, ms;
var st= el.style, cs= el.currentStyle;
if (minmax_elements==window.undefined) {
// initialise when body element has turned up, but only on IE
if (!document.body || !document.body.currentStyle) return;
minmax_elements= new Array();
window.attachEvent('onresize', minmax_delayout);
// make font size listener
em= document.createElement('div');
em.setAttribute('id', 'minmax_em');
em.style.position= 'absolute'; em.style.visibility= 'hidden';
em.style.fontSize= 'xx-large'; em.style.height= '5em';
em.style.top='-5em'; em.style.left= '0';
if (em.style.setExpression) {
em.style.setExpression('width', 'minmax_checkFont()');
document.body.insertBefore(em, document.body.firstChild);
}
}
// transform hyphenated properties the browser has not caught to camelCase
for (i= minmax_props.length; i-->0;)
if (cs[minmax_props[i][0]])
st[minmax_props[i][1]]= cs[minmax_props[i][0]];
// add element with properties to list, store optimal size values
for (i= minmax_props.length; i-->0;) {
ms= cs[minmax_props[i][1]];
if (ms && ms!='auto' && ms!='none' && ms!='0' && ms!='') {
st.minmaxWidth= cs.width; st.minmaxHeight= cs.height;
minmax_elements[minmax_elements.length]= el;
// will need a layout later
minmax_delayout();
break;
} }
}
// check for font size changes
var minmax_fontsize= 0;
function minmax_checkFont() {
var fs= document.getElementById('minmax_em').offsetHeight;
if (minmax_fontsize!=fs && minmax_fontsize!=0)
minmax_delayout();
minmax_fontsize= fs;
return '5em';
}
// Layout. Called after window and font size-change. Go through elements we
// picked out earlier and set their size to the minimum, maximum and optimum,
// choosing whichever is appropriate
// Request re-layout at next available moment
var minmax_delaying= false;
function minmax_delayout() {
if (minmax_delaying) return;
minmax_delaying= true;
window.setTimeout(minmax_layout, 0);
}
function minmax_stopdelaying() {
minmax_delaying= false;
}
function minmax_layout() {
window.setTimeout(minmax_stopdelaying, 100);
var i, el, st, cs, optimal, inrange;
for (i= minmax_elements.length; i-->0;) {
el= minmax_elements[i]; st= el.style; cs= el.currentStyle;
// horizontal size bounding
st.width= st.minmaxWidth; optimal= el.offsetWidth;
inrange= true;
if (inrange && cs.minWidth && cs.minWidth!='0' && cs.minWidth!='auto' && cs.minWidth!='') {
st.width= cs.minWidth;
inrange= (el.offsetWidth<optimal);
}
if (inrange && cs.maxWidth && cs.maxWidth!='none' && cs.maxWidth!='auto' && cs.maxWidth!='') {
st.width= cs.maxWidth;
inrange= (el.offsetWidth>optimal);
}
if (inrange) st.width= st.minmaxWidth;
// vertical size bounding
st.height= st.minmaxHeight; optimal= el.offsetHeight;
inrange= true;
if (inrange && cs.minHeight && cs.minHeight!='0' && cs.minHeight!='auto' && cs.minHeight!='') {
st.height= cs.minHeight;
inrange= (el.offsetHeight<optimal);
}
if (inrange && cs.maxHeight && cs.maxHeight!='none' && cs.maxHeight!='auto' && cs.maxHeight!='') {
st.height= cs.maxHeight;
inrange= (el.offsetHeight>optimal);
}
if (inrange) st.height= st.minmaxHeight;
}
}
// Scanning. Check document every so often until it has finished loading. Do
// nothing until <body> arrives, then call main init. Pass any new elements
// found on each scan to be bound
var minmax_SCANDELAY= 500;
function minmax_scan() {
var el;
for (var i= 0; i<document.all.length; i++) {
el= document.all[i];
if (!el.minmax_bound) {
el.minmax_bound= true;
minmax_bind(el);
} }
}
var minmax_scanner;
function minmax_stop() {
window.clearInterval(minmax_scanner);
minmax_scan();
}
minmax_scan();
minmax_scanner= window.setInterval(minmax_scan, minmax_SCANDELAY);
window.attachEvent('onload', minmax_stop);
@end @*/

119
htdocs/layout.css

@ -1,119 +0,0 @@
body {
font-family: "Trebuchet MS, Verdana, Arial";
font-size: 9pt;
background-image: url(/static/grafs/bg.jpg);
margin: 0px;
background-attachment: fixed;
background-position: 0px 0px;
}
#mm {
background: url(/static/grafs/lin10.jpg);
background-repeat: repeat-y;
/* Im naechsten stand mal Center, FireFox verpeilt dann aber die Linien... */
background-position: left top;
text-align: left;
margin: 0px auto auto;
width: 444px;
}
#cont {
background-image: url(/static/grafs/lin10.jpg);
background-repeat: repeat-y;
background-position: left top;
min-height: 60%;
width: 444px;
color: #FFFFFF;
text-align: left;
}
.conx {
position: relative;
width: 430px;
left: 7px;
text-align: justify;
}
h1 {
font-size: 14pt;
color: #C60307;
}
img {
border-style: none;
}
a.navi:link, a.navi:visited, a.navi:active, a.navi:hover {
font-weight: bold;
font-family: "Trebuchet MS";
font-size: 9pt;
color: #283E53;
text-decoration: none;
}
a:link, a:visited, a:hover, a:active {
font-weight: normal;
font-family: "Trebuchet MS";
font-size: 9pt;
color: #FFFFFF;
text-decoration: underline;
}
a.navi:hover, a:hover {
color: #A31313;
}
.navibg {
background:url(/static/grafs/lin5.jpg);
width:444px;
height:22px;
}
.navipos {
font-weight: bold;
color: #283E53;
width: 430px;
position: relative;
height: 18px;
top: 3px;
text-align: right;
left: 9px;
}
.footerbg {
background:url(/static/grafs/lin11.jpg);
width:444px;
height:14px;
text-align:center
}
.footer {
font-size: 7pt;
color: #283E53;
}
/* shamelessly stolen from http://jquery.bassistance.de/tooltip/demo/ */
#tooltip.pretty {
font-family: Arial;
border: none;
width: 210px;
padding:20px;
height: 135px;
opacity: 0.8;
background: url('/static/grafs/shadow.png');
}
#tooltip.pretty h3 {
margin-bottom: 0.75em;
font-size: 12pt;
width: 220px;
text-align: center;
}
#tooltip.pretty div {
width: 220px;
text-align: left;
}
#tooltip.pretty a {
color: darkblue;
}

35
template/base.htm

@ -1,35 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{% block title %}Dingenskirchen{% endblock %}</title>
<link rel="stylesheet" media="screen" type="text/css" href="/static/layout.css" />
<link rel="stylesheet" media="screen" type="text/css" href="/static/mumble/style.css" />
<style type="text/css" media="screen">
{% block modelstyle %}{% endblock %}
</style>
{% block headtags %}{% endblock %}
</head>
<body>
<div id="mm">
<div class="navibg">
<div class="navipos">
.
<a href="/accounts/login/" class="navi">Login</a> .
<a href="/admin/" class="navi">Admin</a> .
<a href="/mumble/" class="navi">Mumble</a> .
<a href="/accounts/profile/" class="navi">Profile</a> .
</div>
</div>
<div id="cont">
<div class="conx" style="min-height:400px">
{% block content %}
<p>No content found :(</p>
{% endblock %}
</div>
</div>
<div class="footerbg">
<div class="footer">template by www.madart25.com</div>
</div>
</div>
</body>
</html>

2
template/mumble/content.htm

@ -10,7 +10,7 @@
</tr> </tr>
{% for item in ChannelTable %} {% for item in ChannelTable %}
<tr> <tr>
<td class="mumble mm-left" id="{{ item.1.id }}">
<td class="mumble" id="{{ item.1.id }}">
<span {% spaceless %} <span {% spaceless %}
{% if item.1.is_channel %} {% if item.1.is_channel %}
class="mumble_channel" class="mumble_channel"

Loading…
Cancel
Save