This file contains hidden or 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
import SwiftUI | |
struct DeviceRotationViewModifier: ViewModifier { | |
let action: (UIDeviceOrientation) -> Void | |
func body(content: Content) -> some View { | |
content | |
.onReceive(NotificationCenter.default.publisher(for: UIDevice.orientationDidChangeNotification)) { _ in | |
action(UIDevice.current.orientation) | |
} |
This file contains hidden or 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
<div aria-multiselectable="true" id="accordion" role="tablist"> | |
<div class="card"> | |
<div class="card-header" id="heading-1" role="tab"> | |
<h3 class="mb-0"><a aria-controls="collapse-1" aria-expanded="true" data-parent="#accordion" data-toggle="collapse" href="#collapse-1"> What is my P Number? | |
</a></h3> | |
</div> | |
<div aria-labelledby="heading-1" class="collapse show" id="collapse-1" role="tabpanel"> | |
<div class="card-block"> | |
<p>This is where the actual text goes</p> | |
</div> |
This file contains hidden or 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
<html | |
xmlns="http://www.w3.org/1999/xhtml" lang="en"> | |
<head> | |
<!-- Required meta tags --> | |
<meta charset="utf-8"/> | |
<meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport"/> | |
<system-page-meta-keywords/> | |
<system-page-meta-description/> | |
<meta content="Pellissippi State Webmaster" name="author"/> | |
<title>Pellissippi State Community College</title> |
This file contains hidden or 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
import Vapor | |
import HTTP | |
public class AdminAuthMiddleware: Middleware { | |
public let error: Error | |
public let authLevel: UserRole | |
public init(error: Error, authLevel: UserRole) { | |
self.error = error | |
self.authLevel = authLevel | |
} |
This file contains hidden or 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
<!-- Create a new custom widget and place the following code in the Content area --> | |
<h2>Need help? Having trouble?</h2> | |
<ul> | |
<li><a href="/Shared/documentation/help.html?role={rolename}" target="_blank">Online Help</a></li> | |
<li><a href="#">Quick Reference Guides</a></li> | |
<li>Call the HelpDesk (865.694.6537) or <a href="#">email them</a></li> | |
</ul> |
This file contains hidden or 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
<p>Hi, {FirstName} and welcome to {OrgUnitName}. We're going to have a great time this semester. Please take a few minutes to look through Module 1 in the <strong>Course Content</strong> area, where you'll find the Syllabus and Course Schedule.</p> |
This file contains hidden or 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
Hi {FirstName}. It looks like you didn't do so well on the Unit 1 test. For the next exam, you may want to spend some additional time looking at the Study Guide and Practice Test. Please get in touch if you have any questions! |
This file contains hidden or 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
<?php | |
if( strstr([‘HTTP_USER_AGENT’],’iPhone’) || strstr([‘HTTP_USER_AGENT’],’iPod’) || strstr([‘HTTP_USER_AGENT’],’Android’) ) { | |
header(‘Location: http://www.google.com'); | |
exit(); | |
} | |
?> |
This file contains hidden or 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
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script> | |
<script> | |
$(function() { | |
// code to run when the document is ready | |
if (Modernizr.geolocation){ | |
$("p.check4location").html("Congratulations, your browser supports Geolocation!").addClass("locationSuccess"); | |
navigator.geolocation.getCurrentPosition( |
NewerOlder