File tree Expand file tree Collapse file tree 2 files changed +47
-1
lines changed Expand file tree Collapse file tree 2 files changed +47
-1
lines changed Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html >
3
+ < head >
4
+ < title > CORS</ title >
5
+
6
+ < script type ="text/javascript " src ='/lib/jquery.js '> </ script >
7
+ < script type ="text/javascript " src ='/src/jquery.adaptive-backgrounds.js '> </ script >
8
+ < script type ="text/javascript ">
9
+
10
+ $ ( document ) . ready ( function ( ) {
11
+ $ . adaptiveBackground . run ( )
12
+ } ) ;
13
+
14
+ </ script >
15
+
16
+ < style type ="text/css ">
17
+
18
+ body {
19
+ max-width : 500px ;
20
+ margin : 0 auto;
21
+ }
22
+
23
+ .img-wrap {
24
+ height : 300px ;
25
+ position : absolute;
26
+ top : 50% ; left : 50% ;
27
+ text-align : center;
28
+ transform : translateY (-50% ) translateX (-50% );
29
+ -webkit-transform : translateY (-50% ) translateX (-50% );
30
+ }
31
+
32
+ .img-wrap img {
33
+ height : 100% ;
34
+ }
35
+
36
+ </ style >
37
+
38
+ </ head >
39
+ < body >
40
+
41
+ < div class ='img-wrap '>
42
+ < img id ="img " crossOrigin ='' src ="https://s3-us-west-2.amazonaws.com/s.cdpn.io/4629/typehunting-01.jpg " data-adaptive-background ='1 ' data-ab-parent ='body '>
43
+ </ div >
44
+
45
+ </ body >
46
+ </ html >
Original file line number Diff line number Diff line change 1
1
<!DOCTYPE html>
2
2
< html >
3
3
< head >
4
- < title > Explicit Parent </ title >
4
+ < title > Remote Image </ title >
5
5
6
6
< script type ="text/javascript " src ='/lib/jquery.js '> </ script >
7
7
< script type ="text/javascript " src ='/src/jquery.adaptive-backgrounds.js '> </ script >
You can’t perform that action at this time.
0 commit comments