我们新增Dark Mode(暗模式),(只是在晚上)可以改变MAC OS&Windows系统的暗模式实现切换;安卓和苹果手机是一样的。
未分类

测试文章

gyue2345·2013-08-12·63 次阅读··

   2013-08-12 13:21 LJY2345    抢沙发   隐藏边栏   黑色模式    63 
   评分 0 次,平均分 0.0    抢沙发   隐藏边栏   黑色模式
[收起] 文章目录

测试文章

测试标题

标题内容#标题内容《标题内容》标题内容

代码测试

Dockerfile to deploy catuserbot

# credits to @pokurt
FROM python:3.8.3-slim-buster

ENV PIP_NO_CACHE_DIR 1

RUN sed -i.bak 's/us-west-2\.ec2\.//' /etc/apt/sources.list

# Installing Required Packages
RUN apt update && apt upgrade -y && \
    apt install --no-install-recommends -y \
    debian-keyring \
    debian-archive-keyring \
    bash \
    bzip2 \
    curl \
    figlet \
    git \
    util-linux \
    libffi-dev \
    libjpeg-dev \
    libjpeg62-turbo-dev \
    libwebp-dev \
    linux-headers-amd64 \
    musl-dev \
    musl \
    neofetch \
    php-pgsql \
    python3-lxml \
    postgresql \
    postgresql-client \
    python3-psycopg2 \
    libpq-dev \
    libcurl4-openssl-dev \
    libxml2-dev \
    libxslt1-dev \
    python3-pip \
    python3-requests \
    python3-sqlalchemy \
    python3-tz \
    python3-aiohttp \
    openssl \
    pv \
    jq \
    wget \
    python3 \
    python3-dev \
    libreadline-dev \
    libyaml-dev \
    gcc \
    sqlite3 \
    libsqlite3-dev \
    sudo \
    zlib1g \
    ffmpeg \
    libssl-dev \
    libgconf-2-4 \
    libxi6 \
    xvfb \
    unzip \
    libopus0 \
    libopus-dev \
    && rm -rf /var/lib/apt/lists /var/cache/apt/archives /tmp

RUN curl https://cli-assets.heroku.com/install.sh

RUN python3 -m ensurepip \
    && pip3 install --upgrade pip setuptools \
    && rm -r /usr/lib/python*/ensurepip && \
    if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi && \
    if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python3 /usr/bin/python; fi && \
    rm -r /root/.cache
#
# Clone repo and prepare working directory
#

RUN git clone https://github.com/TgCatUB/catuserbot.git /root/userbot
RUN mkdir /root/userbot/.bin
WORKDIR /root/userbot/
ENV PATH="/root/userbot/.bin:$PATH"
WORKDIR /root/userbot/

#
# Install requirements
#
RUN pip3 install -r requirements.txt
CMD ["python3","-m","userbot"]

php 代码测试

//Gravatar头像判断qq邮箱
function get_avatar_javst($avatar) { 
        $protocol=is_ssl()?'https':'http';
        $qqmail = trim(get_comment($parent_id)->comment_author_email);
        if(strpos($qqmail,'@qq.com')){
        $avatar_source='q.qlogo.cn';
        $img='g?b=qq&nk='.preg_replace('/@qq.com/','',$qqmail).'&s=100';}
        else{
            $avatar_source='cn.gravatar.com';
            $img='avatar/$1?s=$2';
            }
        $avatar = preg_replace('/.*\/avatar\/(.*)\?s=([\d]+)&.*/','测试文章',$avatar);
        return $avatar;
}
add_filter('get_avatar', 'get_avatar_javst');

JavaScript 代码测试

    /*Hide sidebar*/
    jQuery(document).ready(function($) {
    $('.hidesidebar').click(function() {
        if ($('.hidesidebar a').is('#stb_btn_kuan')) {
            $('#sidebar').hide();
            $('#sitenews-wrap .bg-sitenews').hide();
            $('#main-wrap-left').attr("id", "main-wrap-fulltp");
            $('#single-blog-wrap').removeClass("two-col-container container");
            $('.hidesidebar a').attr("id", "stb_btn_zhai").attr("title", "Open the sidebar").text("显示边栏");
        } else if ($('.hidesidebar a').is('#stb_btn_zhai')) {
            $('#sidebar').show();
            $('#sitenews-wrap .bg-sitenews').show();
            $("#main-wrap-fulltp").attr("id", "main-wrap-left");
            $("#single-blog-wrap").addClass("two-col-container container");
            $('.hidesidebar a').attr("id", "stb_btn_kuan").attr("title", "Close the sidebar").text("隐藏边栏");
        }
    })
});

css代码测试

@-webkit-keyframes come-in {
    0% {
      -webkit-transform: translatey(100px);
              transform: translatey(100px);
      opacity: 0;
    }
    30% {
      -webkit-transform: translateX(-50px) scale(0.4);
              transform: translateX(-50px) scale(0.4);
    }
    70% {
      -webkit-transform: translateX(0px) scale(1.2);
              transform: translateX(0px) scale(1.2);
    }
    100% {
      -webkit-transform: translatey(0px) scale(1);
              transform: translatey(0px) scale(1);
      opacity: 1;
    }
  }
  @keyframes come-in {
    0% {
      -webkit-transform: translatey(100px);
              transform: translatey(100px);
      opacity: 0;
    }
    30% {
      -webkit-transform: translateX(-50px) scale(0.4);
              transform: translateX(-50px) scale(0.4);
    }
    70% {
      -webkit-transform: translateX(0px) scale(1.2);
              transform: translateX(0px) scale(1.2);
    }
    100% {
      -webkit-transform: translatey(0px) scale(1);
              transform: translatey(0px) scale(1);
      opacity: 1;
    }
  }
  
  .floating-container {
    position: fixed;
    width: auto;
    height: auto;
    bottom: 0;
    left: 0;
    margin: 1% 1%;
  }
  .floating-container:hover {
    height: 300px;
  }
  .floating-container:hover .floating-button {
    box-shadow: 0 10px 25px #607d8b;
    -webkit-transform: translatey(5px);
    transform: translatey(5px);
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
  }

  .floating-container .floating-button {
    position: absolute;
    width: 50px;
    height: 50px;
    background: #263238;
    bottom: 0;
    border-radius: 50%;
    left: 0;
    right: 0;
    margin: auto;
    color: white;
    line-height: 50px;
    text-align: center;
    font-size: 23px;
    z-index: 100;
    box-shadow: 0 10px 25px -5px #78909c;
    cursor: pointer;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
   /*
     Introduced in Internet Explorer 10.
     See http://ie.microsoft.com/testdrive/HTML5/msUserSelect/
   */
    -ms-user-select: none;
    user-select: none;
  }

折叠版

标题
内容不隐藏

标题2

信息条

信息条内容#信息条内容

背景块内容
此处内容需要 才可见
此处内容需要登录并 才可见

下载按钮

演示按钮

网页弹出

网页弹出按钮文字

内部链接

新买的INTEL SSD 660P 使用&简单测试(2019年)

[收起] 文章目录 我们来说说它 INSTALL SSD 作为机械硬盘潜在替代产品的QLC SSD,Intel 660p容量直接就从512GB起步,按照100美元的建议零售价,折算成人民币才680元,...

赞赏

历史上的文章

除特别注明外,本站所有文章均为LJY IT BLOG原创,转载请注明出处来自https://www.ljy2345.com/2013/08/%e6%b5%8b%e8%af%95%e6%96%87%e7%ab%a0/

博 主作者: 关注:6    粉丝:1最后编辑于:2022年9月2日
LJY IT BLOG的站长。

扫一扫打赏

支付宝扫一扫打赏

微信扫一扫打赏

view comments - NOTHING
🌙
😃

切换注册
忘记密码 ?

×

您也可以使用第三方帐号快捷登录

切换登录

×
扫一扫二维码分享
下载海报
  切换主题 | SCHEME TOOL