Team:Northwestern/Calendar

From 2010.igem.org

(Difference between revisions)
 
(44 intermediate revisions not shown)
Line 1: Line 1:
-
{|- style="background:#B4CFEC; color:#6C2DC7" cellpadding="1" cellspacing="1" border="2" bordercolor="#CFECEC" width="80%" align="center"
+
__NOTOC__
-
!align="center"|[[Team:Northwestern|Home]]
+
-
!align="center"|[[Team:Northwestern/Team|Team]]
+
-
!align="center"|[[Team:Northwestern/Project|Project]]
+
-
!align="center"|[[Team:Northwestern/Parts|Parts]]
+
-
!align="center"|[[Team:Northwestern/Notebook|Notebook]]
+
-
!align="center"|[[Team:Northwestern/Safety|Safety]]
+
-
!align="center"|[[Team:Northwestern/Calendar|Calendar]]
+
-
!align="center"|[[Team:Northwestern/Protocol|Protocol]]
+
-
|}
+
-
<?php
 
-
# Google Calendar Extension
 
-
#
 
-
# Purpose:
 
-
# Embed a Google Calendar in a MediaWiki page
 
-
# Tag/Wikitext :
 
-
#  <googlecalendar>docid</googlecalendar>
 
-
# Example :
 
-
#  from <iframe src="http://www.google.com/calendar/embed?src=umhappyhours%40gmail.com"
 
-
#  style="border: 0" width="800" height="600" frameborder="0" scrolling="no"></iframe>
 
-
# Instructions :
 
-
# set $input to the Google Account that owns the calendar you want to embed
 
-
# set $width & $height to the proportions appropriate for your wiki page
 
-
#
 
-
# Credits
 
-
# This code is adapted from Kasper Souren's original extension, sometimes available at
 
-
# http://wiki.couchsurfing.com/wiki/index.php?title=Google_Calendar_MediaWiki_plugin
 
-
# License
 
-
# GNU Public
 
-
$wgExtensionFunctions[] = 'wfGoogleCalendar';
+
<html>
-
$wgExtensionCredits['parserhook'][] = array(
+
<style>
-
        'name' => 'Google Calendar',
+
/* Wiki Hacks - START */
-
        'description' => 'Display Google Calendar',
+
#globalWrapper {
-
        'author' => 'Libby Hemphill',
+
    background-color: transparent;
-
        'url' => ''
+
    padding-bottom:0px;
-
);
+
    border: none;
 +
    }
 +
#top-section {
 +
    height: 0px;
 +
    margin-top: 0px;
 +
    margin-left: auto;
 +
    margin-right: auto;
 +
    margin-bottom: 0 !important;
 +
    margin-bottom: 0px;
 +
    padding:0;
 +
    border: 1;
 +
    }
 +
#p-logo {
 +
    height:0px;
 +
    overflow:hidden;
 +
    border:none;
 +
    }
 +
#search-controls {
 +
    overflow:hidden;
 +
    display:none;
 +
    background: none;
 +
    position: absolute;
 +
    top: 100px;
 +
    right: 40px;
 +
    }         
-
function wfGoogleCalendar() {
+
 
-
        global $wgParser;
+
/* Wiki Hacks - END */
-
        $wgParser->setHook('googlecalendar', 'renderGoogleCalendar');
+
 
 +
 
 +
#content {
 +
    background-color: transparent;
 +
    width:99%;
 +
    position: relative;
 +
    float: center;
 +
    border: 0px;
}
}
-
# The callback function for converting the input text to HTML output
+
#menubar {
-
function renderGoogleCalendar($input) {
+
background-color:transparent;
-
        $input = htmlspecialchars($input);
+
font-size:85%;
-
        //$input = "umhappyhours@gmail.com"
+
line-height:1em;
-
        $width = 425;
+
position:absolute;
-
        $height = 350;
+
top:10px;
 +
white-space:nowrap;
 +
width:50%;
 +
z-index:5;
 +
height:25px;
 +
overflow:hidden;
 +
}
-
$output = '<iframe src="http://www.google.com/calendar/embed?src=' . $input;
+
#menubar li a {
-
$output .= '" style="border: 0" width="' . $width;
+
color:#000000;
-
$output .= '" height="' . $height . '" frameborder="0" scrolling="no"></iframe>';
+
}
-
        return $output;
+
.left-menu {
 +
left:0;
 +
padding-left:13px;
 +
}
 +
.right-menu  {
 +
right:0;
}
}
-
?>
 
-
<googlecalendar>umhappyhours@gmail.com</googlecalendar>
+
.firstHeading { display:none; }
 +
}
-
https://www.google.com/calendar/embedhelper
 
-
http://www.google.com/calendar/embed?src=jt8b61e40pnap50ddhtfcpoua8%40group.calendar.google.com&ctz=America/Chicago
 
-
<googlecalendar>?height=600&amp;wkst=1&amp;bgcolor=%23FFFFFF&amp;src=jt8b61e40pnap50ddhtfcpoua8%40group.calendar.google.com&amp;color=%238C500B&amp;ctz=Pacific%2FApia" style=" border-width:0 " width="800" height="600" frameborder="0" scrolling="no"></googlecalendar>
 
-
<iframe src="http://www.google.com/calendar/embed?src=jt8b61e40pnap50ddhtfcpoua8%40group.calendar.google.com&ctz=America/Chicago" style="border: 0" width="800" height="600"
+
#footer-box {
-
frameborder="0" scrolling="no"></iframe>
+
background-color: transparent;
 +
color: #000000;
 +
border: 0px;
 +
margin:0 auto;
 +
padding:13px 5px;
 +
width:auto;
 +
margin-top:-1px;
 +
}
-
http://www.libbyh.com/2007/12/07/google-calendar-mediawiki-plugin/
+
#footer-box a {
 +
        background-color: transparent;
 +
color: #000000;
 +
font-size:90%;
 +
 
 +
}
 +
/* Wiki Hacks - END */
 +
</style>
 +
</html>
 +
 
 +
<html>
 +
<head>
 +
<style>
 +
body {
 +
  background: #EFCDF8; <!-- EEDCC8 url(https://static.igem.org/mediawiki/2010/3/38/BG1.jpg) repeat-y; -->
 +
}
 +
</style>
 +
</head>
 +
</html>
 +
 
 +
[[Image:LOGOBANNER1.jpg|936px|center|link=http://wikipedia.org|Tech Institute]]
 +
 
 +
<!--- The Mission, Experiments --->
 +
{|- style="font-size: 87%; background: #EFCDF8; color: #FFFFFF" cellpadding="1" cellspacing="1" bordercolor="#000000" width="75%" align="center"
 +
!align="center"|[[Team:Northwestern|<font color="#2B3856">'''Home'''</font>]]
 +
!align="center"|[[Team:Northwestern/Brainstorm|<font color="#000000">'''Brainstorm'''</font>]]
 +
!align="center"|[[Team:Northwestern/Team|<font color="#000000">'''Team'''</font>]]
 +
!align="center"|[[Team:Northwestern/Acknowledgements|<font color="#000000">'''Acknowledgements'''</font>]]
 +
!align="center"|[[Team:Northwestern/Project|<font color="#000000">'''Project'''</font>]]
 +
!align="center"|[[Team:Northwestern/SideProject|<font color="#000000">'''Human Practices'''</font>]]
 +
!align="center"|[[Team:Northwestern/Parts|<font color="#000000">'''Parts'''</font>]]
 +
!align="center"|[[Team:Northwestern/Notebook|<font color="#000000">'''Notebook'''</font>]]
 +
!align="center"|[[Team:Northwestern/Calendar|<font color="#000000">'''Calendar'''</font>]]
 +
!align="center"|[[Team:Northwestern/Protocol|<font color="#000000">'''Protocol'''</font>]]
 +
!align="center"|[[Team:Northwestern/Safety|<font color="#000000">'''Safety'''</font>]]
 +
!align="center"|[[Team:Northwestern/Links|<font color="#000000">'''Links'''</font>]]
 +
!align="center"|[[Team:Northwestern/References|<font color="#000000">'''References'''</font>]]
 +
!align="center"|[[Team:Northwestern/Media|<font color="#000000">'''Media'''</font>]]
 +
!align="center"|[[Team:Northwestern/Contact|<font color="#000000">'''Contact'''</font>]]
 +
|}
 +
 
 +
{| align="center" border="0" width="75%"
 +
|
 +
 
 +
 
 +
<html>
 +
<div align="center">
 +
<iframe src="https://www.google.com/calendar/embed?title=Northwestern%20iGEM%202010&amp;height=600&amp;wkst=1&amp;bgcolor=%23FFFFFF&amp;src=nuigem10%40gmail.com&amp;color=%23853104&amp;ctz=America%2FChicago" style=" border-width:0 " width="933" height="600" frameborder="0" scrolling="no"></iframe>
 +
</div>
 +
</html>
 +
 
 +
<div align="right">
 +
click on ^
 +
 
 +
nuigem10//igem2010 @g
 +
 
 +
|}

Latest revision as of 16:17, 23 October 2010


Tech Institute
Home Brainstorm Team Acknowledgements Project Human Practices Parts Notebook Calendar Protocol Safety Links References Media Contact


click on ^

nuigem10//igem2010 @g