mirror of
https://github.com/anope/anope.git
synced 2026-07-09 08:23:13 +02:00
Moved the javascript to header.html from memos.html to make it easier to intergrate the overlay feedback and do tweaks
This commit is contained in:
@@ -7,6 +7,57 @@
|
||||
<script type="text/javascript">
|
||||
var t=5000; // Time in ms to display an overlay if one will be displayed
|
||||
</script>
|
||||
{IF EXISTS CMDR}
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() \{
|
||||
|
||||
/*Modal*/
|
||||
var id = "#dialog";
|
||||
|
||||
showModal();
|
||||
|
||||
$('.close').click(function (e) \{
|
||||
e.preventDefault();
|
||||
hideModal();
|
||||
\});
|
||||
|
||||
$('#mask').click(function () \{
|
||||
hideModal();
|
||||
\});
|
||||
|
||||
function hideModal() \{
|
||||
if ($('#mask').not(':hidden')) \{
|
||||
$('.master').fadeTo('slow',1.0);
|
||||
$('#mask, .window').fadeOut(200);
|
||||
\}
|
||||
\}
|
||||
|
||||
function showModal() \{
|
||||
var mHeight = $(document).height();
|
||||
var mWidth = $(window).width();
|
||||
|
||||
var alertMsg = '<br/>{CMDR}<br/>';
|
||||
|
||||
$('#mask').css(\{'width': mWidth, 'height': mHeight\});
|
||||
$('#mask').fadeIn(200);
|
||||
$('#mask').fadeTo('fast',0.75);
|
||||
|
||||
$('#dialogMsg').html(alertMsg);
|
||||
var top = mHeight/2-$(id).height()/2;
|
||||
var left= mWidth/2-$(id).width()/2;
|
||||
|
||||
$(id).css('top', top);
|
||||
$(id).css('left', left);
|
||||
$('.master').fadeTo('fast',0.3);
|
||||
|
||||
$(id).fadeIn(500);
|
||||
setTimeout(hideModal, t);
|
||||
|
||||
\}
|
||||
|
||||
\});
|
||||
</script>
|
||||
{END IF}
|
||||
</head>
|
||||
<body>
|
||||
<div id="boxes">
|
||||
|
||||
@@ -1,55 +1,4 @@
|
||||
{INCLUDE header.html}
|
||||
{IF EXISTS CMDR}
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() \{
|
||||
|
||||
/*Modal*/
|
||||
var id = "#dialog";
|
||||
|
||||
showModal();
|
||||
|
||||
$('.close').click(function (e) \{
|
||||
e.preventDefault();
|
||||
hideModal();
|
||||
\});
|
||||
|
||||
$('#mask').click(function () \{
|
||||
hideModal();
|
||||
\});
|
||||
|
||||
function hideModal() \{
|
||||
if ($('#mask').not(':hidden')) \{
|
||||
$('.master').fadeTo('slow',1.0);
|
||||
$('#mask, .window').fadeOut(200);
|
||||
\}
|
||||
\}
|
||||
|
||||
function showModal() \{
|
||||
var mHeight = $(document).height();
|
||||
var mWidth = $(window).width();
|
||||
|
||||
var alertMsg = '<br/>{CMDR}<br/>';
|
||||
|
||||
$('#mask').css(\{'width': mWidth, 'height': mHeight\});
|
||||
$('#mask').fadeIn(200);
|
||||
$('#mask').fadeTo('fast',0.75);
|
||||
|
||||
$('#dialogMsg').html(alertMsg);
|
||||
var top = mHeight/2-$(id).height()/2;
|
||||
var left= mWidth/2-$(id).width()/2;
|
||||
|
||||
$(id).css('top', top);
|
||||
$(id).css('left', left);
|
||||
$('.master').fadeTo('fast',0.3);
|
||||
|
||||
$(id).fadeIn(500);
|
||||
setTimeout(hideModal, t);
|
||||
|
||||
\}
|
||||
|
||||
\});
|
||||
</script>
|
||||
{END IF}
|
||||
<b>Channels you have access in:</b><br/>
|
||||
{FOR CH,ECH IN CHANNEL_NAMES,ESCAPED_CHANNEL_NAMES}
|
||||
<a href="/memoserv/memos?channel={ECH}" class="channel">{CH}</a>
|
||||
|
||||
Reference in New Issue
Block a user