This repository has been archived by the owner on Jan 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Continued building out the journal component
- Loading branch information
1 parent
6453d78
commit c623363
Showing
10 changed files
with
136 additions
and
10 deletions.
There are no files selected for viewing
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 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 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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
jLoader.Initialize( "appleseed" ); | ||
|
||
jLoader.Appleseed = function ( ) { } | ||
|
||
jLoader.Appleseed.Checkbox = function ( ) { } | ||
|
||
jLoader.Appleseed.Checkbox.OnClick = function ( pElement, pParent ) { | ||
|
||
element = $(pElement); | ||
parent = element.parent(); | ||
container = parent.parent().parent(); | ||
|
||
if ( !container.hasClass ( 'privacy' ) ) return ( false ); | ||
|
||
if ( parent.hasClass ( 'everybody' ) ) { | ||
if ( !pElement.checked ) pElement.checked = true; | ||
|
||
if (pElement.checked ) { | ||
container.find ( '.friends input' ).attr ( 'checked', false ); | ||
container.find ( '.circle input' ).attr ( 'checked', false ); | ||
container.find ( '.nobody input' ).attr ( 'checked', false ); | ||
} | ||
} else if ( parent.hasClass ( 'friends' ) ) { | ||
if ( !pElement.checked ) pElement.checked = true; | ||
|
||
if (pElement.checked ) { | ||
container.find ( '.everybody input').attr ( 'checked', false ); | ||
container.find ( '.circle input').attr ( 'checked', false ); | ||
container.find ( '.nobody input').attr ( 'checked', false ); | ||
} | ||
} else if ( parent.hasClass ( 'circle' ) ) { | ||
if (pElement.checked ) { | ||
container.find ( '.everybody input').attr ( 'checked', false ); | ||
container.find ( '.friends input').attr ( 'checked', false ); | ||
container.find ( '.nobody input').attr ( 'checked', false ); | ||
} | ||
} else if ( parent.hasClass ( 'nobody' ) ) { | ||
if ( !pElement.checked ) pElement.checked = true; | ||
|
||
if (pElement.checked ) { | ||
container.find ( '.everybody input').attr ( 'checked', false ); | ||
container.find ( '.friends input').attr ( 'checked', false ); | ||
container.find ( '.circle input').attr ( 'checked', false ); | ||
} | ||
} | ||
|
||
elements = container.find ( ".privacy-list .item" ); | ||
|
||
checked = false; | ||
for ( e = 0; e < elements.length; e++ ) { | ||
if ( $(':checkbox', elements[e] ).attr('checked' ) ) checked = true; | ||
} | ||
|
||
if ( !checked ) { | ||
container.find ( '.nobody input').attr ( 'checked', true ); | ||
} | ||
|
||
return ( 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
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,4 +38,4 @@ | |
|
||
</head> | ||
|
||
<body onload = "Initialize();" id="www-website-com"> | ||
<body onload = "Initialize();" id="appleseed"> |
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