-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstandard.js
28 lines (26 loc) · 967 Bytes
/
standard.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
$(document).ready(function ()
{
initPrettyPhoto();
addRoundedCorners();
});
function initPrettyPhoto()
{
$("a[rel^='prettyPhoto']").prettyPhoto({
animationSpeed: 'normal', /* fast/slow/normal */
padding: 40, /* padding for each side of the picture */
opacity: 0.7, /* Value betwee 0 and 1 */
showTitle: false, /* true/false */
allowresize: true, /* true/false */
theme: 'dark_rounded', /* light_rounded / dark_rounded / light_square / dark_square */
social_tools: '',
deeplinking: false
});
}
function addRoundedCorners()
{
$(".right-border-nojs").removeClass("right-border-nojs").addClass("right-border-js");
$(".left-border-nojs").removeClass("left-border-nojs").addClass("left-border-js");
var cornerElements = $(".right-border-js, .right-border-js > div, .left-border-js, .left-border-js > div");
cornerElements.prepend("<b class='btop'><b></b></b>");
cornerElements.append("<b class='bbot'><b></b></b>");
}