This repository has been archived by the owner on Apr 22, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathexample.html
67 lines (64 loc) · 2.35 KB
/
example.html
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="stylesheet"
href="https://unpkg.com/@creativecommons/[email protected]/css/fonts.css"
/>
<link
rel="stylesheet"
href="https://unpkg.com/@creativecommons/[email protected]/css/vocabulary.css"
/>
<title>CC Global Components</title>
</head>
<body>
<div class="container">
<!-- Div element used to mount the Explore CC component-->
<div id="explore-cc">
<cc-explore
donation-url="https://www.classy.org/give/313412/#!/donation/checkout?c_src=website&c_src2=top-of-page-banner"
logo-url=""
/>
</div>
<!-- Div element used to mount the Global Header component-->
<div id="header-cc">
<cc-global-header
base-url="http://127.0.0.1:8000"
donation-url="https://www.classy.org/give/313412/#!/donation/checkout?c_src=website&c_src2=NavBar"
use-menu-placeholders
logo-url=""
/>
</div>
</div>
<!-- Div element used to mount the Global Footer component-->
<div id="footer-cc">
<cc-global-footer
donation-url="https://www.classy.org/give/313412/#!/donation/checkout?c_src=website&c_src2=top-of-page-banner"
logo-url=""
/>
</div>
<!-- Import Vue JS via CDN -->
<script src="https://unpkg.com/vue@next"></script>
<!-- Import Axios via CDN. Needed for the Global Header Component -->
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<!-- Import the Component Library. In production, this should be replaced with the CDN url.-->
<script src="./dist/cc-globals.min.js"></script>
<script>
/* Import and use the Explore CC component */
const cc_explore = Vue.createApp({});
cc_explore.use(CcGlobals);
cc_explore.mount("#explore-cc");
/* Import and use the CC Global Header component */
const cc_header = Vue.createApp({});
cc_header.use(CcGlobals);
cc_header.mount("#header-cc");
/* Import and use the CC Global Footer component */
const cc_footer = Vue.createApp({});
cc_footer.use(CcGlobals);
cc_footer.mount("#footer-cc");
</script>
</body>
</html>