1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
- <meta http-equiv="Access-Control-Allow-Origin" content="*">
- <title>How it Works | Introducing CharmLive.com and Its Services</title>
- <meta name="keywords" content="Charmlive,charmlive.com,live broadcast,live streaming,live video chat,videostream" />
- <meta name="description" content="CharmLive provides different kinds of live broadcasts catering to your needs.Simply click to know what they are and how they work." />
- <script src="<%=public_path%>/js/jquery.js"></script>
- </head>
- <body>
- <div id="app"></div>
- <script>
- $.ajaxSetup({
- cache: true
- });
- $.get('/page/list.html', {}, function(res) {
- var str = res.replace(/[\r\n]/g, "");
- var source = {},
- scriptArr = [];
- source.style = str.match(/<style.*?<\/style>/g);
- source.link = str.match(/<link.*?>/g);
- scriptArr = str.match(/<script.*?<\/script>/g);
- var script = '';
- for (var key in source) {
- if (Object.prototype.toString.call(source[key]) == '[object Array]') {
- source[key].forEach(function(value) {
- $('body').append(value);
- })
- }
- }
- scriptArr.forEach(function(value) {
- if (value.toLowerCase().indexOf('jquery.min.js') > -1) return;
- $('body').append(value);
- })
- })
- </script>
- </body>
- </html>
|