WebHost/Scripts/js/uikit/vendor/jquery.rtl.js

(开头部分) 9KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/*!
  * A CSS LTR 2 RTL converter, part of UIkit and WARP framework.
  * http://getuikit.com/
  * http://www.yootheme.com/warp
  *
  * Based on R2 - a CSS LTR 2 RTL converter (https://github.com/ded/r2, Dustin Diaz, MIT License)
  */

(function($) {

    if(!String.prototype.trim) {
        String.prototype.trim = function () {
            return this.replace(/^\s+|\s+$/g,'');
        };
    }

    if(!String.prototype.trimComma) {
        String.prototype.trimComma = function() {
            return this.replace(/^,+|,+$/g, '');
        };
    }

    if(!String.prototype.trimSemicolon) {
        String.prototype.trimSemicolon = function() {
            return this.replace(/^;+|;+$/g, '');
        };
    }

    var propertyMap = {
        'margin-left': 'margin-right',
        'margin-right': 'margin-left',

        'padding-left': 'padding-right',
        'padding-right': 'padding-left',

        'border-left': 'border-right',
        'border-right': 'border-left',

        'border-left-color': 'border-right-color',
        'border-right-color': 'border-left-color',
        'border-left-width': 'border-right-width',
        'border-right-width': 'border-left-width',
        'border-left-style': 'border-right-style',
        'border-right-style': 'border-left-style',

        'border-bottom-right-radius': 'border-bottom-left-radius',
        'border-bottom-left-radius': 'border-bottom-right-radius',

        'border-top-right-radius': 'border-top-left-radius',
        'border-top-left-radius': 'border-top-right-radius',

        'left': 'right',
        'right': 'left'
    };

    var valueMap = {
        'padding': quad,
        'margin': quad,
        'text-align': rtltr,
        'float': rtltr,
后面还有 211 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。