This file contains 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
I decided to make the text follow the mouse. | |
First, download JqueryUI and place it in your usual js location. This library gives you all kinds of nice stuff, like moving a <div> around a page that follows your mouse. | |
<script src="/js/vendor/jquery-ui.min.js"></script> | |
Here’s my <div> by the way, this is what I’ll be using. | |
<div id="forworldmapcomment" style="position:absolute;"></div> | |
In your $(document).ready(function() {}); function add this: | |
$("#forworldmap").mousemove(function(e){ |
This file contains 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
I really like this post out on http://css-tricks.com/simple-jquery-dropdowns/ | |
1. Download the files | |
2. Include this in your code | |
<script src="../Scripts/jquery.dropdownPlain.js" type="text/javascript"></script> | |
3. Create a menu | |
<div id="dropdownmenu"> | |
<ul class="dropdown"> |
This file contains 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
//this function will load blog roll from sessionstorage or go get it if need be | |
function doLoadBlogRoll() | |
{ | |
var sessionKey = "postsInSession"; | |
//if browser supports session storage, try to use it | |
if (sessionStorage) { | |
var sessionValue = sessionStorage.getItem(sessionKey); | |
if (sessionValue) { | |
// update website | |
$("#div_blogroll").html(sessionValue); // We just avoided one ajax request |
This file contains 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
//Call this function which will do the work of rendering if needed | |
visChange(); | |
//check if the div_blogroll is visible on the page, if so, render it | |
function visChange() { | |
var divBlog = document.getElementById('div_blogroll'); | |
if (divBlog) { | |
if (!isHidden()) | |
doLoadBlogRoll(); | |
} |
This file contains 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
@property (weak, nonatomic) IBOutlet UILabel *LabelNotifications; | |
@synthesize LabelNotifications = _labelNotifications; | |
//viewDidLoad method | |
[_labelNotifications setAlpha:0.0]; | |
_labelNotifications.text = @"I am a label. I am going to fade in and out for the user!"; | |
[UIView animateWithDuration:2.0 | |
delay:0.0 |
This file contains 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
1. Identify a div tag that contains the content you want to popup and display. | |
In this case, we have a div tag called dialog_betamode. | |
We also have an element called floating_betamode that we will click to launch the dialog. | |
2. Put this in your initialization area | |
$(function () { | |
var dlg = $("#dialog_betamode").dialog({ | |
autoOpen: false, | |
show: "blind", | |
modal: true, |
This file contains 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="../Scripts/jquery.Jcrop.min.js" type="text/javascript"></script> | |
<style type="text/css" media="all">@import "../Styles/jquery.Jcrop.css";</style> | |
<img id="mycroppable" src="#yoururl" title=""/> | |
<script language="javascript" type="text/javascript"> | |
$(document).ready(function () { | |
function setImageCropCoords(c) { | |
// variables can be accessed here as |
This file contains 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 id="div_scrollhere"></div> | |
$("html,body").animate({ scrollTop: $("#div_scrollhere").offset().top }, 1000); |
This file contains 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="../Scripts/tinymce/jscripts/tiny_mce/tiny_mce.js" type="text/javascript"></script> | |
<textarea id="textarea_text" rows="20" cols="20" runat="server" class="tinymce" /> | |
tinyMCE.init({ | |
mode: "specific_textareas", | |
editor_selector: "tinymce", | |
encoding: "xml", | |
height: "600", | |
width: "100%", |
This file contains 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
Got the admin password? | |
Ok, connect to it on COM1 using 9600 baud, no parity, 8 data bits, 1 stop bit | |
switch>en | |
switch>write erase | |
switch>reload | |
switch>show vlan (you should now see that only default vlan settings are present indicating everything has been wiped) | |
Don't got the admin password? |