Important: The GCConnex decommission will not affect GCCollab or GCWiki. Thank you and happy collaborating!

Changes

Jump to navigation Jump to search
no edit summary
Line 1: Line 1: −
{{#css:
+
<!DOCTYPE html>
 +
<html lang="en">
 +
<head>
 +
  <meta charset="UTF-8">
 +
  <title>Dynamic Wikipedia Page</title>
 +
  <style>
 +
    body {
 +
      font-family: "Segoe UI", sans-serif;
 +
      margin: 0;
 +
      padding: 0;
 +
      background: #f8f9fa;
 +
      color: #202122;
 +
    }
   −
body {
+
    header {
font-family: 'Nunito Sans', sans-serif;
+
      background: #3366cc;
            }
+
      color: white;
 +
      padding: 1em;
 +
      text-align: center;
 +
    }
   −
.res-img img {
+
    main {
        max-width:100%;
+
      display: flex;
        height:auto;
+
      max-width: 1200px;
            }
+
      margin: auto;
 +
      padding: 2em;
 +
    }
   −
#topten {  
+
    article {
        margin-top: 2.2em;
+
      flex: 3;
            }
+
      margin-right: 2em;
 +
    }
   −
.btn {
+
    aside {
  display: inline-block;
+
      flex: 1;
  margin-bottom: 0;
+
      background: #e9ecef;
  font-weight: 400;
+
      padding: 1em;
  text-align: center;
+
      border-radius: 8px;
  white-space: nowrap;
+
    }
  vertical-align: middle;
  −
  -ms-touch-action: manipulation;
  −
  touch-action: manipulation;
  −
  cursor: pointer;
  −
  background-image: none;
  −
  border: 1px solid transparent;
  −
  padding: 6px 6px;
  −
  font-size: 14px;
  −
  line-height: 1.42857143;
  −
  border-radius: 20px;
  −
        width: auto; 
  −
        height: auto;
  −
        background-color: rgba(85, 73, 92,0.8);
  −
        border: 1px solid rgb(85, 73, 92);
  −
        transition: 1s ease;
  −
            }
     −
.btn a {
+
    h1, h2 {
        color: rgb(255, 255, 255);
+
      border-bottom: 1px solid #ccc;
        text-decoration: none;
+
      padding-bottom: 0.3em;
            }
+
    }
   −
.btn a.external {
+
    .collapsible {
        color: rgb(255, 255, 255);
+
      background-color: #eee;
        text-decoration: none;
+
      cursor: pointer;
            }
+
      padding: 10px;
 +
      border: none;
 +
      text-align: left;
 +
      outline: none;
 +
      font-size: 1em;
 +
      margin-top: 1em;
 +
    }
   −
.btn a.external:visited {
+
    .content {
color: rgb(255, 255, 255);
+
      padding: 0 18px;
        text-decoration: none;
+
      display: none;
            }
+
      overflow: hidden;
 +
      background-color: #f1f1f1;
 +
    }
   −
.btn a.external:hover {
+
    footer {
color: rgb(255,255,255);
+
      text-align: center;
        text-decoration: underline;
+
      padding: 1em;
            }
+
      background: #ddd;
 +
      margin-top: 2em;
 +
    }
 +
  </style>
 +
</head>
 +
<body>
   −
.btn:hover {
+
<header>
  background-color: rgba(85, 73, 92,0.5);
+
  <h1>Sample Wikipedia Page</h1>
        transition: 1s ease;
+
</header>
        text-decoration: underline;
  −
            }
      +
<main>
 +
  <article>
 +
    <h2>Introduction</h2>
 +
    <p>This is a visually dynamic version of a Wikipedia-style page. It includes collapsible sections, styled infoboxes, and a clean layout.</p>
   −
.mainpage_row {
+
    <button class="collapsible">History</button>
display: flex;
+
    <div class="content">
flex-direction: row;
+
      <p>The history section can be expanded or collapsed. This adds interactivity to the page.</p>
flex-flow: row wrap;
+
    </div>
justify-content: space-between;
  −
padding: 0;
  −
margin: 0 -5px 0 -5px;
  −
            }
     −
.mainpage_box {
+
    <button class="collapsible">Applications</button>
flex: 1;
+
    <div class="content">
margin: 5px;
+
      <p>Applications of this layout include educational content, documentation, and personal wikis.</p>
min-width: 210px;
+
    </div>
border: 0px solid #CCC;
  −
padding: 10px 10px 10px 10px;
  −
            }
     −
.mainpage_box h2 {
+
    <h2>References</h2>
    color: rgb(85,73,92);
+
    <ul>
    font-family: 'Rubik', sans-serif;
+
      <li>[1] Example Reference One</li>
    font-size: 24px;
+
      <li>[2] Example Reference Two</li>
            }
+
    </ul>
 +
  </article>
   −
.mainpage_box h3 {
+
  <aside>
color: rgb(85,73,92);
+
    <h3>Infobox</h3>
font-family: 'Rubik', sans-serif;
+
    <p><strong>Type:</strong> Article</p>
font-size: 21px;
+
    <p><strong>Created:</strong> August 2025</p>
font-weight: normal;
+
    <p><strong>Author:</strong> Renée Whittaker</p>
            }
+
  </aside>
 +
</main>
   −
.learnBar {
+
<footer>
        padding: 10px;
+
  <p>Page generated by Copilot</p>
        margin: 5px 0px 0px 0px;
+
</footer>
  border: 1px solid purple;
  −
        border-radius: 20px;
  −
            }
     −
.searchBar {
+
<script>
        background-color: rgb(0,0,128);
+
  const collapsibles = document.querySelectorAll(".collapsible");
        color: rgb(255,255,255);
+
  collapsibles.forEach(btn => {
        padding: 10px;
+
    btn.addEventListener("click", function () {
  border: 1px solid transparent;
+
      this.classList.toggle("active");
        border-radius: 20px;
+
      const content = this.nextElementSibling;
            }
+
      content.style.display = content.style.display === "block" ? "none" : "block";
 +
    });
 +
  });
 +
</script>
   −
.searchBar a {
+
</body>
        color: rgb(255,255,255);
+
</html>
            }
  −
 
  −
.start {
  −
        font-family: 'Nunito Sans', sans-serif;
  −
        background-color: rgba(85, 73, 92,0.8);
  −
        border: 1px solid rgb(85, 73, 92);
  −
        color: rgb(255,255,255);
  −
        padding: 10px;
  −
        max-width:50%;
  −
        height:auto;
  −
            }
  −
 
  −
.start:hover {
  −
  background-color: rgba(85, 73, 92,0.5);
  −
        transition: 1s ease;
  −
            }
  −
 
  −
.items a {
  −
color: rgb(255,255,255);
  −
        text-decoration: none;
  −
white-space: nowrap;
  −
            }
  −
 
  −
.items a:visited {
  −
color: rgb(255,255,255);
  −
        text-decoration: none;
  −
            }
  −
 
  −
.items a:hover {
  −
color: rgb(255,255,255);
  −
        text-decoration: underline;
  −
            }
  −
 
  −
.items a.external {
  −
color: rgb(255,255,255);
  −
        text-decoration: none;
  −
            }
  −
 
  −
.items a.external:visited {
  −
color: rgb(255,255,255);
  −
        text-decoration: none;
  −
            }
  −
 
  −
.items a.external:hover {
  −
color: rgb(255,255,255);
  −
        text-decoration: underline;
  −
            }
  −
 
  −
.fadein img {
  −
opacity:1;
  −
        transition: 1s ease;
  −
            }
  −
 
  −
.fadein img:hover {
  −
opacity:0.5;
  −
transition: 1s ease;
  −
            }
  −
 
  −
.start-icon {
  −
margin: 0px 5px 0px 5px;
  −
            }
  −
 
  −
.alert {
  −
border: 1px solid transparent;
  −
            }
  −
 
  −
.alert-primary {
  −
background-color: rgba(1, 204, 220, 0.16);
  −
box-shadow: 0px 0px 2px #03fff5;
  −
border-color: rgb(1, 204, 220);
  −
border-style: solid;
  −
border-left: 3px solid  #2f6aa5;
  −
border-right: 3px solid  #2f6aa5;
  −
border-bottom-right-radius: 6px;
  −
border-top-right-radius: 6px;
  −
border-bottom-left-radius: 6px;
  −
border-top-left-radius: 6px;
  −
padding: 3px 10px 3px 10px;
  −
            }
  −
 
  −
.alert-primary:hover {
  −
background-color: rgba(1, 204, 220, 0.3);
  −
transition: 0.5s;
  −
            }
  −
 
  −
.times
  −
{
  −
-webkit-animation: blink 2s 1 both;
  −
        animation: blink 2s 1 both;
  −
            }
  −
 
  −
@-webkit-keyframes blink {
  −
  0%,
  −
  50%,
  −
  100% {
  −
    opacity: 1;
  −
  }
  −
  25%,
  −
  75% {
  −
    opacity: 0;
  −
  }
  −
            }
  −
@keyframes blink {
  −
  0%,
  −
  50%,
  −
  100% {
  −
    opacity: 1;
  −
  }
  −
  25%,
  −
  75% {
  −
    opacity: 0;
  −
  }
  −
            }
  −
 
  −
}}
  −
 
  −
<multilang>
  −
@en|__NOTOC__
  −
<!--The following line of code hides the page title-->
  −
[[File:WikiButtonFrench.png|300px|frameless|right|link=https://wiki.gccollab.ca/AMC/post-secondaire]]
  −
{{DISPLAYTITLE:<span style="position: absolute; clip: rect(1px 1px 1px 1px); clip: rect(1px, 1px, 1px, 1px);">{{FULLPAGENAME}}</span>}}
  −
<div style="font-size: 200%"><span style="color: #55495C">'''The Office of Drug Research and Surveillance'''</div>
  −
<div class="mainpage_row">
  −
<div class="mainpage_box">
  −
<h2><span> '''About this page''' </span></h2>
  −
<div>
  −
Welcome to the Office of Drug Research and Surveillance GC Wiki Page!
  −
<h3><span> '''TEXT''' </span></h3>
  −
TEXT
  −
<br><br>
  −
'''TEXT:'''
  −
* '''Vision:''' ODRS is a credible center of experts that informs and supports Federal Policy and Programs on the use of and impacts of drugs and substances in Canada.
  −
* '''Mission:''' ODRS collaborates with partners to collect, analyze and disseminate timely and meaningful data and information on the use and impacts of drugs and substances in Canada 
  −
<br><br>
  −
<div class="learnBar">
  −
[[File:STP_ENG_wiki.png |250px|link= https://travel.gc.ca/travelling/safe-travel-planner/intro]]  [[File:Webpage_ENG_wiki.png |250px|link=https://travel.gc.ca/travelling/health-safety/youth]]
  −
</div>
  −
</div>
  −
 
  −
</div>
  −
<br>
  −
 
  −
 
  −
<div class="mainpage_box">
  −
<h2>'''Research and Surveillance Streams''' </h2>
  −
<br>
  −
  −
{| style="text-align: center;"
  −
|- 
  −
| class="res-img fadein" style="padding: 0px 10px" | [[File:01.jpg|150px| link= https://wiki.gccollab.ca/The_Office_of_Drug_Research_and_Surveillance/Survey_Results]]
  −
| class="res-img fadein" style="padding: 0px 10px" | [[File:02.jpg|150px|link= ]]
  −
|-
  −
| style="padding: 0px 10px" | [https://wiki.gccollab.ca/The_Office_of_Drug_Research_and_Surveillance/Survey_Results '''<big> Survey Results </big>''']
  −
| style="padding: 0px 10px" | [https://wiki.gccollab.ca/GAC/post-secondary/downloads '''<big> Monitoring Data </big>''']
  −
|}
  −
<br>
  −
{| style="text-align: center;"
  −
|- 
  −
| class="res-img fadein" style="padding: 0px 10px" | [[File:03.jpg|150px|link=]]
  −
| class="res-img fadein" style="padding: 0px 10px" | [[File:04.jpg|150px|link=]]
  −
|-
  −
| style="padding: 0px 10px" | [[GAC/post-secondary/predeparture | '''<big> Surveillance Data </big>''']]
  −
| style="padding: 0px 10px" | [[GAC/post-secondary/web_Process_to_update_your_web_content | '''<big> Research Data </big>''']]
  −
|}
  −
</div>
  −
</div>
  −
<div class="mainpage_row">
  −
<div class="mainpage_box">
  −
<h2>'''Research Impact '''</h2>
  −
<br>
  −
 
  −
{| class="zebra" style="width:50%
  −
|-
  −
|- style="background-color:lightblue
  −
| style="text-align:center;" | Cell Content
  −
! Header 1 !! Header 2 !! Header 3
  −
|-
  −
| Row 1, Cell 1 || Row 1, Cell 2 || Row 1, Cell 3
  −
|-
  −
| Row 2, Cell 1 || Row 2, Cell 2 || Row 2, Cell 3
  −
|}
  −
</div>
  −
</div>
  −
</div>
  −
</div>
  −
<div class="mainpage_row">
  −
<div class="mainpage_box">
  −
<h2>'''Connect with us'''</h2>
  −
<br>
  −
{| style="text-align: center;"
  −
|-
  −
| style="padding: 0px 10px" | ['''<big> odrs-brsd@hc-sc.gc.ca </big>''']
  −
|}
  −
 
  −
</div>
  −
</div>
  −
 
  −
 
  −
<div class="mainpage_row">
  −
<div class="mainpage_box">
  −
<h2>'''Other pages you may be interested in'''</h2>
  −
{| style="width: 100%;" -
  −
| style="padding: 0px 0px 0px 30px; width: 50%" | 1. [https://travel.gc.ca/travelling/documents/dual-citizenship '''Dual citizens''']
  −
| style="padding: 0px 0px 0px 30px; width: 50%" | 6. [https://travel.gc.ca/assistance/embassies-consulates '''Embassies and consulates by destination''']
  −
|-
  −
| style="padding: 0px 0px 0px 30px; width: 50%" | 2. [https://travel.gc.ca/travelling/health-safety/youth '''Students and youth''']
  −
| style="padding: 0px 0px 0px 30px; width: 50%" | 7. [https://travel.gc.ca/travelling/health-safety/clinic '''Find a travel health clinic''']
  −
|-
  −
| style="padding: 0px 0px 0px 30px; width: 50%" | 3. [https://travel.gc.ca/assistance/emergency-assistance '''Emergency information''']
  −
| style="padding: 0px 0px 0px 30px; width: 50%" | 8. [https://travel.gc.ca/assistance/emergency-info/roca-faq '''Registration of Canadians Abroad - FAQ''']
  −
|-
  −
| style="padding: 0px 0px 0px 30px; width: 50%" | 4. [https://travel.gc.ca/travelling/health-safety/lgbt-travel '''2SLGBTQI+ travellers''']
  −
| style="padding: 0px 0px 0px 30px; width: 50%" | 9. [https://travel.gc.ca/travelling/documents '''Travel documents''']
  −
|-
  −
| style="padding: 0px 0px 0px 30px; width: 50%" | 5. [https://travel.gc.ca/travelling/health-safety/advice-for-women-travellers '''Women travellers''']
  −
| style="padding: 0px 0px 0px 30px; width: 50%" | 10. [https://travel.gc.ca/assistance/emergency-info/consular '''About consular services''']
  −
|}
  −
 
  −
</div>
  −
</div>
  −
 
  −
<br><br>
  −
[[File:CAwordmark.png|500px|frameless|right]]
  −
 
  −
</multilang>
 

Navigation menu

GCwiki