project 3 com380
Signed-off-by: Amrit Panesar <apanesar-77260@student.coleman.edu>
No files matched your search
|
After Width: | Height: | Size: 51 KiB |
|
After Width: | Height: | Size: 48 KiB |
@@ -0,0 +1,417 @@
|
||||
/* ***************************************************
|
||||
Galleries.css - Common Structure
|
||||
|
||||
This is where we define common layout for structures that are truly close to common across the different
|
||||
Galleries sites. To make sure this works we need to follow certain conventions.
|
||||
|
||||
1. Define each logical structure in its own section with its own comment block that gives the section
|
||||
a Name, Description and defines the root element if one exists (i.e #someElement). Also, mark the closing block.
|
||||
|
||||
2. Indent styles in a section to represent if it is a child of a previous element.
|
||||
i.e. #someDiv{
|
||||
}
|
||||
#someDiv ul {
|
||||
}
|
||||
|
||||
3. Do not include brand specific information here like colors and fonts unless they are *really* common.
|
||||
|
||||
4. If there is an element that you know will be overridden in each brand stylesheet still include it here with an empty definition.
|
||||
This will aid in knowing what section to override and what selectors to use.
|
||||
|
||||
i.e. #someSction a {
|
||||
}
|
||||
|
||||
5. When you add a new section also update the Table of Contents below so that we have a quick overview of the sections
|
||||
|
||||
*****************************************************/
|
||||
|
||||
/****************************************************
|
||||
Table of Contents
|
||||
|
||||
Global - global classes
|
||||
|
||||
FileAttachmentDisplay - The list of attached files under the editor
|
||||
Eyebrow - The breadcrumb control at the top of the master page
|
||||
Pager - The common paging control, used for browsing pages of search results
|
||||
Profile User Card - Elements in the profile usercard control
|
||||
SideNav - The navigation side bar that contains the search filters
|
||||
|
||||
|
||||
*****************************************************/
|
||||
|
||||
/********************************
|
||||
Name: Global
|
||||
Root: none
|
||||
Description: truly global classes
|
||||
********************************/
|
||||
body {
|
||||
text-align: left;
|
||||
direction: ltr;
|
||||
}
|
||||
|
||||
img.rss {
|
||||
background: url(../../../GlobalResources/Images/Rss.png) no-repeat;
|
||||
background-position: 0px 0px;
|
||||
height: 17px;
|
||||
width: 17px;
|
||||
}
|
||||
/* End Global Section */
|
||||
|
||||
/********************************
|
||||
Name: FileAttachmentDisplay
|
||||
Root: #fileAttachmentDisplay
|
||||
Description: The list of attached files under the editor
|
||||
********************************/
|
||||
#fileAttachmentDisplay {
|
||||
}
|
||||
#fileAttachmentDisplay .attachment {
|
||||
margin-right: 10px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
#fileAttachmentDisplay .attachment .displayAttachment {
|
||||
padding: 0px 0 13px 0;
|
||||
float: left;
|
||||
}
|
||||
|
||||
#fileAttachmentDisplay .attachment .removeAttachment {
|
||||
background-image: url('/Content/Common/delete.png');
|
||||
display: block;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
float: left;
|
||||
}
|
||||
/* End FileAttachmentDisplay Section */
|
||||
|
||||
|
||||
/********************************
|
||||
Name: Eyebrow
|
||||
Root: .EyebrowContainer
|
||||
Description: The breadcrumb control at the top of the master page
|
||||
********************************/
|
||||
.EyebrowContainer {
|
||||
}
|
||||
.EyebrowContainer div.EyebrowElement{
|
||||
display:inline;
|
||||
}
|
||||
|
||||
.EyebrowContainer .EyebrowElement{
|
||||
font-weight:normal
|
||||
}
|
||||
.EyebrowContainer .EyebrowLeafLink{
|
||||
color:#000;
|
||||
}
|
||||
/* End Eyebrow Section */
|
||||
|
||||
/********************************
|
||||
Name: Pager
|
||||
Root: #Pager
|
||||
Description: The common paging control, used for browsing pages of search results
|
||||
********************************/
|
||||
#Pager {
|
||||
}
|
||||
#Pager div{
|
||||
display:inline;
|
||||
}
|
||||
/* End Pager Section */
|
||||
|
||||
/********************************
|
||||
|
||||
Name: Profile User Card
|
||||
Root: #dashboardPage #userCard
|
||||
Description: Elements in the profile usercard control
|
||||
|
||||
********************************/
|
||||
#dashboardPage #userCard .profile-usercard-inline {
|
||||
margin: 5px 0 10px 0;
|
||||
}
|
||||
|
||||
/* #dashboardPage #userCard .profile-usercard {
|
||||
width: 288px;
|
||||
}
|
||||
/* End Profile User Card Section */
|
||||
|
||||
/********************************
|
||||
|
||||
Name: Discussion
|
||||
Root: #DiscussionsTabPane
|
||||
Description: Defines the layout of the dicussion
|
||||
|
||||
|
||||
********************************/
|
||||
#DiscussionsTabPane {
|
||||
}
|
||||
|
||||
#DiscussionsTabPane .itemHidden
|
||||
{
|
||||
background: lightgrey;
|
||||
}
|
||||
|
||||
#discussionListItem {
|
||||
}
|
||||
|
||||
.discussion .postActions
|
||||
{
|
||||
float: right;
|
||||
}
|
||||
|
||||
#discussionListItem .postItem
|
||||
{
|
||||
white-space: pre-wrap;
|
||||
word-wrap: break-word;
|
||||
font-size:1em;
|
||||
}
|
||||
|
||||
/* End Discussion Section */
|
||||
|
||||
|
||||
/********************************
|
||||
|
||||
Name: SearchDefaultLocale
|
||||
Root: .searchDefaultLocale
|
||||
Description: Defines the layout of the include english result checkbox on the Browse Page
|
||||
|
||||
|
||||
********************************/
|
||||
.searchDefaultLocale
|
||||
{
|
||||
float: right;
|
||||
margin: 20px 0 0 5px;
|
||||
}
|
||||
.searchDefaultLocale input
|
||||
{
|
||||
vertical-align:top;
|
||||
}
|
||||
.searchDefaultLocale span
|
||||
{
|
||||
margin-left: -3px;
|
||||
}
|
||||
/*-------- End SearchDefaultLocale --------*/
|
||||
|
||||
|
||||
/********************************
|
||||
|
||||
Name: SideNav
|
||||
Root: #sideNav
|
||||
Description: Defines the layout of the naviation elements on the side of the Browse Page
|
||||
These represent the different filters like Code Language, Category and Tag
|
||||
|
||||
|
||||
********************************/
|
||||
|
||||
#sideNav {
|
||||
width: 250px;
|
||||
vertical-align:top;
|
||||
}
|
||||
#sideNav h3 {
|
||||
}
|
||||
|
||||
#sideNav .section {
|
||||
padding: 0 0 10px 0;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#sideNav .section a {
|
||||
}
|
||||
|
||||
#sideNav .section a:hover {
|
||||
}
|
||||
|
||||
#sideNav .section > div {
|
||||
padding:5px 5px 5px 0;
|
||||
line-height:150%;
|
||||
}
|
||||
|
||||
#sideNav .section ul {
|
||||
list-style-type:none;
|
||||
padding:0px;
|
||||
margin:0px;
|
||||
}
|
||||
|
||||
#sideNav .section ul li {
|
||||
position: relative;
|
||||
padding: 5px 5px 5px 0;
|
||||
}
|
||||
|
||||
#sideNav .section ul li .selectedFilter {
|
||||
float: left;
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
#sideNav .section div.itemCount {
|
||||
float: right;
|
||||
}
|
||||
|
||||
#sideNav .section form input[ type = "checkbox"] {
|
||||
margin: 0px 4px 0px 0px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
/* End SideNav Section */
|
||||
|
||||
/*----------- Contribution Logos *******/
|
||||
.contributionLogo {
|
||||
float: left;
|
||||
position: relative;
|
||||
margin-right: 6px;
|
||||
}
|
||||
|
||||
.logo_visualstudio {
|
||||
background: transparent url('../common/logos/visualstudio.png') no-repeat;
|
||||
width: 23px;
|
||||
height: 12px;
|
||||
margin-top: 3px;
|
||||
}
|
||||
.logo_allinonecode {
|
||||
background: transparent url('../common/logos/1code.png') no-repeat;
|
||||
width: 14px;
|
||||
height: 16px;
|
||||
}
|
||||
.logo_exchange {
|
||||
background: transparent url('../common/logos/exchange.png') no-repeat;
|
||||
width: 14px;
|
||||
height: 16px;
|
||||
}
|
||||
.logo_ie {
|
||||
background: transparent url('../common/logos/ie.png') no-repeat;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
.logo_office {
|
||||
background: transparent url('../common/logos/office.png') no-repeat;
|
||||
width: 17px;
|
||||
height: 16px;
|
||||
}
|
||||
.logo_windows {
|
||||
background: transparent url('../common/logos/windows.png') no-repeat;
|
||||
width: 17px;
|
||||
height: 16px;
|
||||
}
|
||||
.logo_azure {
|
||||
background: transparent url('../common/logos/windowsazuredark.png') no-repeat;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.logo_windowsphone {
|
||||
background: transparent url('../common/logos/windowsphone.png') no-repeat;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.contributionLogoTip {
|
||||
position: absolute;
|
||||
display: none;
|
||||
border: solid 1px #CCC;
|
||||
color: #333;
|
||||
background-color: #F0F0F0;
|
||||
font-size: 11px;
|
||||
font-family: "Segoe UI",Sans-Serif;
|
||||
box-shadow: 3px 3px 5px #888;
|
||||
-moz-box-shadow: 3px 3px 5px #888;
|
||||
z-index: 1003;
|
||||
padding: 5px;
|
||||
min-width: 250px;
|
||||
}
|
||||
|
||||
/*----------- End Contribution Logos *******/
|
||||
|
||||
.clear
|
||||
{
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.customcontributionLogoTip {
|
||||
position: absolute;
|
||||
display: none;
|
||||
border: solid 1px #CCC;
|
||||
background-color: white;
|
||||
color: #333;
|
||||
font-size: 11px;
|
||||
font-family: "Segoe UI",Sans-Serif;
|
||||
box-shadow: 3px 3px 5px #888;
|
||||
-moz-box-shadow: 3px 3px 5px #888;
|
||||
z-index: 1004;
|
||||
padding: 5px;
|
||||
min-width: 250px;
|
||||
}
|
||||
|
||||
.customcontributionTittle {
|
||||
font-size: 14px;
|
||||
margin-left: 90px;
|
||||
}
|
||||
|
||||
.customcontributionDiscription {
|
||||
font-size: 13px;
|
||||
margin: 10px 5px;
|
||||
text-align: justify;
|
||||
}
|
||||
|
||||
.customcontribution {
|
||||
float: left;
|
||||
position: relative;
|
||||
margin-right: 6px;
|
||||
}
|
||||
|
||||
.customcontributionLink {
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.customcontributionlogo {
|
||||
float: left;
|
||||
padding: 0 10px;
|
||||
margin: 0;
|
||||
width: 70px;
|
||||
height: 70px;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
|
||||
.logo_azure_large {
|
||||
background-image: url('../common/logos/windowsazure_large.png');
|
||||
}
|
||||
.logo_visualstudio_large {
|
||||
background-image: url('../common/logos/visualstudio_large.png');
|
||||
}
|
||||
.logo_exchange_large {
|
||||
background-image: url('../common/logos/exchange_large.png');
|
||||
}
|
||||
.logo_ie_large {
|
||||
background-image: url('../common/logos/ie_large.png');
|
||||
}
|
||||
.logo_office_large {
|
||||
background-image: url('../common/logos/office_large.png');
|
||||
}
|
||||
.logo_windows_large {
|
||||
background-image: url('../common/logos/windows_large.png');
|
||||
}
|
||||
.logo_windowsphone_large {
|
||||
background-image: url('../common/logos/windowsphone_large.png');
|
||||
}
|
||||
|
||||
/* Custome Header */
|
||||
.dirSubHeading .windowssdk .container
|
||||
{
|
||||
background: #00BCF2 url('wpappsbackground.png') no-repeat;
|
||||
color: #575757;
|
||||
padding: 20px 10px 50px 225px;
|
||||
}
|
||||
|
||||
.dirSubHeading .windowssdk .container h1, .dirSubHeading .windowssdk .container h2 {
|
||||
color: #575757 !important;
|
||||
}
|
||||
|
||||
.dirSubHeading .windowssdk .container p {
|
||||
margin: 28px 0 0 0 !important;
|
||||
}
|
||||
|
||||
.dirSubHeading .windowssdk .container a {
|
||||
background-color: #575757;
|
||||
color: #FFFFFF !important;
|
||||
cursor: pointer;
|
||||
font-size: 16px;
|
||||
font-family: 'Segoe UI Semibold','Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif;
|
||||
padding: 11px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,147 @@
|
||||
#container {
|
||||
min-height: 768px;
|
||||
}
|
||||
|
||||
#leftSubHeaderContainer
|
||||
{
|
||||
margin-top:20px;
|
||||
}
|
||||
|
||||
#title h1
|
||||
{
|
||||
font-size:25px;
|
||||
}
|
||||
|
||||
#subtitle h2
|
||||
{
|
||||
font-size:15px;
|
||||
}
|
||||
|
||||
#subtitle
|
||||
{
|
||||
margin-left:10px;
|
||||
}
|
||||
|
||||
|
||||
#formContainer
|
||||
{
|
||||
margin-left:10px;
|
||||
margin-top:30px;
|
||||
}
|
||||
|
||||
.formLabel
|
||||
{
|
||||
float:left;
|
||||
width: 250px;
|
||||
}
|
||||
|
||||
.formRow
|
||||
{
|
||||
clear:both;
|
||||
padding: 10px 0 10px 10px;
|
||||
}
|
||||
|
||||
|
||||
.formRecaptchaRow
|
||||
{
|
||||
clear:both;
|
||||
float:left;
|
||||
margin-top:20px;
|
||||
margin-left:10px;
|
||||
margin-bottom:20px;
|
||||
}
|
||||
|
||||
.formSubmitRow
|
||||
{
|
||||
clear:both;
|
||||
margin-top:20px;
|
||||
margin-left:300px;
|
||||
margin-bottom:20px;
|
||||
}
|
||||
|
||||
.formControl {
|
||||
width:300px;
|
||||
float:left;
|
||||
}
|
||||
.formControl .textInput
|
||||
{
|
||||
width:300px;
|
||||
}
|
||||
|
||||
.formControl textarea
|
||||
{
|
||||
width:425px;
|
||||
height:100px;
|
||||
}
|
||||
|
||||
.formControl .tag
|
||||
{
|
||||
width:425px;
|
||||
}
|
||||
|
||||
.formControl .richText
|
||||
{
|
||||
margin-top:10px;
|
||||
width:500px;
|
||||
height:440px;
|
||||
}
|
||||
|
||||
.formWideLabel
|
||||
{
|
||||
width:500px;
|
||||
}
|
||||
|
||||
.formBigLabel
|
||||
{
|
||||
margin-top:20px;
|
||||
font-size:20px;
|
||||
}
|
||||
|
||||
.formControlBelow
|
||||
{
|
||||
clear:both;
|
||||
margin-top:10px;
|
||||
width:500px;
|
||||
}
|
||||
|
||||
.required
|
||||
{
|
||||
color: Red;
|
||||
}
|
||||
.helpText
|
||||
{
|
||||
color: #9D9D9D;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
#agreementSummary
|
||||
{
|
||||
clear:both;
|
||||
margin-top:10px;
|
||||
width:800px;
|
||||
}
|
||||
|
||||
.field-validation-error, .validation-summary-errors
|
||||
{
|
||||
color: #FF0000;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.tinyMCETemplate {
|
||||
position: relative;
|
||||
left: 400px;
|
||||
width: 300px;
|
||||
max-height: 300px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.IE6 .tinyMCETemplate {
|
||||
left: 25px;
|
||||
}
|
||||
|
||||
.ownerBar {
|
||||
padding: 5px;
|
||||
}
|
||||
.ownerBar .ownerBarOptions {
|
||||
float: right;
|
||||
}
|
||||
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 32 KiB |
@@ -0,0 +1,179 @@
|
||||
body {
|
||||
color: #000000;
|
||||
font-family: 'Segoe UI',Verdana,Arial;
|
||||
font-size: 0.813em;
|
||||
font-style: normal;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
/*BEGIN HEADERS*/
|
||||
.h1, h1 {
|
||||
color: #3A3E43;
|
||||
font-family: 'Segoe UI',Verdana,Arial;
|
||||
font-size: 1.4em;
|
||||
font-weight: bold;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.h2, h2 {
|
||||
color: #3A3E43;
|
||||
font-family: 'Segoe UI',Verdana,Arial;
|
||||
font-size: 1.2em;
|
||||
font-weight: bold;
|
||||
}
|
||||
.h3, h3 {
|
||||
color: #3A3E43;
|
||||
font-family: 'Segoe UI',Verdana,Arial;
|
||||
font-size: 1.077em;
|
||||
font-weight: bold;
|
||||
}
|
||||
.h4, h4 {
|
||||
color: #3A3E43;
|
||||
font-family: 'Segoe UI',Verdana,Arial;
|
||||
font-size: 1em;
|
||||
font-weight: bold;
|
||||
}
|
||||
h4.subHeading {
|
||||
margin-bottom: 7px;
|
||||
margin-top: 13px;
|
||||
}
|
||||
/*END HEADERS*/
|
||||
|
||||
/*BEGIN LINKS*/
|
||||
a:link {
|
||||
color: #00749E;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
a:visited {
|
||||
color: #960BB4;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:focus {
|
||||
outline: 1px dotted #000000;
|
||||
}
|
||||
|
||||
a.libraryLink:link {
|
||||
text-decoration:none;
|
||||
border-bottom:1px dotted;
|
||||
}
|
||||
|
||||
/*END LINKS*/
|
||||
|
||||
/*BEGIN IMAGES*/
|
||||
img {
|
||||
border: 0 none;
|
||||
}
|
||||
/*END IMAGES*/
|
||||
|
||||
/*BEGIN TABLE*/
|
||||
.title table {
|
||||
color: #000000;
|
||||
font-family: 'Segoe UI',Verdana,Arial;
|
||||
font-size: 1.077em;
|
||||
font-style: normal;
|
||||
}
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
table, table th, table td {
|
||||
border:1px solid #BBBBBB;
|
||||
}
|
||||
/*END TABLE*/
|
||||
|
||||
/*BEGIN LIST*/
|
||||
ul {
|
||||
list-style-type: disc;
|
||||
margin-left:40px;
|
||||
padding-left: 0;
|
||||
}
|
||||
ul li {
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
ol {
|
||||
margin-left:40px;
|
||||
padding-left: 0;
|
||||
}
|
||||
ol li {
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
/*END LIST*/
|
||||
|
||||
.scriptcode {
|
||||
position: relative;
|
||||
padding: 8px 8px 8px 8px;
|
||||
background: #FFFFFF;
|
||||
font-size: 12px;
|
||||
line-height: 125%;
|
||||
font-weight:normal;
|
||||
}
|
||||
.scriptcode pre
|
||||
{
|
||||
white-space: pre-wrap !important; /* css-3 */
|
||||
word-wrap: break-word !important; /* Internet Explorer 5.5+ */
|
||||
margin:0 0 10px 0 !important;
|
||||
padding: 10px;
|
||||
border-top: solid 2px #D0D2D2;
|
||||
border-bottom: solid 2px #D0D2D2;
|
||||
border-left: solid 1px #D0D2D2;
|
||||
border-right: solid 1px #D0D2D2;
|
||||
}
|
||||
|
||||
.scriptcode .title {
|
||||
color:#E66A38;
|
||||
font-size: 12px;
|
||||
font-weight:bold;
|
||||
margin: 0;
|
||||
min-height: 23px;
|
||||
}
|
||||
.scriptcode .title > span:first-child {
|
||||
border-left: solid 1px #D0D2D2;
|
||||
}
|
||||
.scriptcode .title > span {
|
||||
padding: 4px 8px 4px 8px;
|
||||
display: inline-block;
|
||||
border-top: 1px solid #D0D2D2;
|
||||
border-right: 1px solid #D0D2D2;
|
||||
border-collapse: collapse;
|
||||
text-align: center;
|
||||
background: white;
|
||||
}
|
||||
.scriptcode .title > span.otherTab {
|
||||
color: #1364C4;
|
||||
background: #EFF5FF;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.scriptcode .hidden {
|
||||
display: none !important;
|
||||
visibility: hidden !important;
|
||||
}
|
||||
|
||||
.scriptcode .copyCode {
|
||||
padding: 8px 2px 0 2px !important;
|
||||
margin-right: 15px;
|
||||
position: absolute !important;
|
||||
right: 0 !important;
|
||||
top: 17px;
|
||||
display:block !important;
|
||||
background: #FFFFFF;
|
||||
}
|
||||
.scriptcode .pluginLinkHolder {
|
||||
display: none;
|
||||
}
|
||||
.scriptcode .pluginEditHolderLink {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.Opera wbr
|
||||
{
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.IE9 wbr:after
|
||||
{
|
||||
content: "\00200B";
|
||||
}
|
||||
|
After Width: | Height: | Size: 25 KiB |
@@ -0,0 +1,52 @@
|
||||
var Galleries = Galleries || { };
|
||||
|
||||
(function() {
|
||||
|
||||
function findElem(parent, tagName, className) {
|
||||
var elemToSearch = (parent) ? parent : document.body;
|
||||
var tagMatch = elemToSearch.getElementsByTagName(tagName);
|
||||
var evaluator = function(elem) {
|
||||
return (className) ? (elem.className.indexOf(className) > -1) : true;
|
||||
};
|
||||
|
||||
return findArrayElem(tagMatch, evaluator);
|
||||
}
|
||||
|
||||
function findArrayElem(array, evaluator) {
|
||||
var newArray = new Array();
|
||||
for (var count = 0; count < array.length; count++) {
|
||||
if (evaluator(array[count])) {
|
||||
newArray.push(array[count]);
|
||||
}
|
||||
}
|
||||
return newArray;
|
||||
}
|
||||
|
||||
function iterateElem(elems, delegate) {
|
||||
for(var count = 0; count < elems.length; count++) {
|
||||
delegate(count, elems[count]);
|
||||
}
|
||||
}
|
||||
|
||||
function isHidden(elem) {
|
||||
return (elem.offsetHeight === 0 && elem.offsetWidth === 0) || elem.style && elem.style.display === "none";
|
||||
}
|
||||
|
||||
function onWindowLoad(callback) {
|
||||
attachEventHandler(null, 'load', callback);
|
||||
}
|
||||
|
||||
function attachEventHandler(elem, event, callback) {
|
||||
var elemToAttach = (elem) ? elem : window;
|
||||
if (document.addEventListener) {
|
||||
elemToAttach.addEventListener(event, callback, false);
|
||||
} else if ( document.attachEvent ) {
|
||||
elemToAttach.attachEvent('on' + event, callback);
|
||||
}
|
||||
}
|
||||
|
||||
Galleries.findElem = findElem;
|
||||
Galleries.iterateElem = iterateElem;
|
||||
Galleries.attachEventHandler = attachEventHandler;
|
||||
Galleries.onWindowLoad = onWindowLoad;
|
||||
})();
|
||||