Difference between revisions of "Template:NKU China/js/share"

Line 1: Line 1:
var rem = Number($('html').css('font-size').replace('px', ''));
+
<!DOCTYPE html>
 +
<html>
 +
<head>
 +
    <meta charset="utf-8">
 +
    <meta name="viewport" content="width=device-width, initial-scale=1"> 
 +
    <link rel="stylesheet" href="css/jquery-ui.min.css">
 +
    <link rel="stylesheet" href="css/theme.css">
 +
    <link rel="stylesheet" href="css/custom.css">
 +
    <link rel="stylesheet" href="css/share.css">
 +
    <link rel="stylesheet" href="css/local.css">
 +
    <script title="jquery.js" src="js/jquery-3.1.0.min.js"></script>
 +
    <script title="jquery-ui.js" src="js/jquery-ui.min.js"></script>
 +
    <script title="bootstrap.js" src="js/bootstrap.min.js"></script>
 +
    <script title="modernizr.js" src="js/modernizr.js"></script>
 +
    <script title="particles.js" src="js/particles.min.js"></script>
 +
    <script>
 +
        var rem = Number($('html').css('font-size').replace('px', ''));
 
         function log(value) { console.log(value); }
 
         function log(value) { console.log(value); }
 
         function particles() { $('#particles-js').toggle(); }
 
         function particles() { $('#particles-js').toggle(); }
 +
        function adjust_figure() {
 +
            $('figure').each(
 +
                function (index, value) {
 +
                    var max_width = $(value).find('span').width() / rem * 1.2 + 'rem';
 +
                    $(value).css('max-width', max_width);
 +
                }
 +
            )
 +
        }
 +
    </script>
 +
 +
    <!--separatrix-->
 +
</head>
 +
 +
<body>
 +
</body>
 +
</html>

Revision as of 15:30, 19 October 2016

<!DOCTYPE html>