Chrome Pointer

2019年11月14日 星期四

使用jQuery在Blogger加入回到頂端按鈕的教學, 超簡單馬上會 !

如果有人想要學習Vue.js的寫法,可以參考以下文章!

💓使用Vue.js加入回到頂端按鈕的教學, 在Blogger也適用~




















大家看到上面這張圖的右下角就是回到頂端的浮動按鈕

這個按鈕是用jQuery寫的~


就算完全沒有寫過程式的朋友也可以輕鬆學會唷!!



Step1.
你要先到你的Blogger後台的「主題」裡面點選「編輯HTML
然後在裡面找到<head>和</head>
並且新增以下語法~

<!--Start:插入jQuery-->
<script src='https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js'/>
 <!--End:插入jQuery-->


由於這個特效會使用到jQuery,因此我們必須匯入jQuery語法
之後再加入下面這些語法~

<script type="text/javascript">

$(function() {
    /* 按下GoTop按鈕時的事件 */
    $('#gotop').click(function(){
        $('html,body').animate({ scrollTop: 0 }, 'slow');   /* 返回到最頂上 */
        return false;
    });
   
    /* 偵測卷軸滑動時,往下滑超過400px就讓GoTop按鈕出現 */
    $(window).scroll(function() {
        if ( $(this).scrollTop() > 400){
            $('#gotop').fadeIn();
        } else {
            $('#gotop').fadeOut();
        }
    });
});
</script> 


Step2.
之後在程式裡面找到<body>和</body> 
然後把
<div id='gotop'><center>^</center></div>  塞進去~
就會是等下顯示在右下角的符號



Step3.
再次在<head>和</head>裡面加上下面這些CSS語法
這些語法是幫助你設計你按鈕的文字顏色以及背景的!!

<style type='text/css'>

#gotop {
    position:fixed;
    z-index:90;
    right:30px;
    bottom:30px;
    display:none;
    width:60px;
    font-size: 30px;
    height:60px;
    color:#000000;
    background:#FFD2D2    ;
    line-height:60px;
    border-radius:50%;
    transition:all 0.5s;
    text-align: center;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12);
}

#gotop :hover{
        width:60px;
        font-size: 30px;
        height:60px;
        border-radius:50%;
        background:#FFB5B5     ;
}

</style>





----------重要意思解釋---------
    width:60px;     //按鈕寬度
    font-size: 30px;   //文字大小
    height:60px;    //按鈕高度
    color:#000000;   //文字顏色
    background:#FFD2D2    ;  //背景顏色

    #gotop :hover  裡面的 background:#FFB5B5   //是指游標移到按鈕上時的顏色~

2019年11月12日 星期二

英文文法教學


考祈使句

1. I will be in an important meeting all morning, so please _____ me.

(A) not to disturb
(B) isn’t disturbing
(C) not disturbing
(D) don’t disturb

 Ans:  (D)

🔻
祈使句 + 原型動詞 →要你去做
            + don’t        →不要你去做


➤ Please open the door.
➤ Please don't forget to write a letter.



2. The names of all the employees in the company _____ listed at the back of the manual.

(A) is
(B) has been
(C) are
(D) was

Ans: (C)

🔻
The names  複數
manual  手冊


https://www.youtube.com/watch?v=AI7LEFYBv5A&t=87s

2019年11月9日 星期六

不經意看到的單字


Fax
Verb

to send a document using a fax machine
發傳真

I'll fax it (through/over/acrossto you.
我會把它傳真給您。




Intimidated
Adjective

frightened or nervous because you are not confident in a situation
膽怯的,畏縮的,害怕的

Older people can feel very intimidated by computers.
年紀較大的人可能會對電腦感到畏縮。


Intimidating
Adjective

making you feel frightened or nervous
令人緊張的,嚇人的

an intimidating array of weapons
大量令人膽戰心驚的武器

an intimidating manner
令人懼怕的態度

She can be very intimidating when she's angry.
她發怒的樣子可以很嚇人。




Speculate
Verb

to guess possible answers to a question when you do not have enough information to be certain
猜測;推測,推斷

I don't know why she did it - I'm just speculating.
我不知道她爲甚麽那麽做——我只是猜測。


spokesperson declined to speculate on the cause of the train crash.
一位發言人拒絕就火車相撞事件的原因作出推測。





Qualify
Verb


to successfully finish a training course so that you are able to do a job; to have or achieve the necessary skills, etc.
(使)具有資格,(使)合格

She hopes to qualify (as a lawyer) at the end of the year.
她希望在年底取得(律師)資格。


to have the legal right to have or do something because of the situation you are in, or to cause someone to have such a right

有資格;准予;有權



To qualify for the competition you need to be over 18.

18歲以上才有資格參賽。



Being a single parent qualifies you for extra benefits.

單親父母有資格領取額外補貼。





Crave
Verb

to have a very strong feeling of wanting something
渴望,熱望;難以抑制的渴求

Many young children crave attention.
許多小孩子渴望得到關注。

Craving
Noun

strong feeling of wanting something
渴望,熱望;難以抑制的渴求

I have a craving for chocolate.

我很想吃巧克力。





Relief
Noun

feeling of happiness that something unpleasant has not happened or has ended
(不快過後的)寬慰,寬心,輕鬆,解脫

 It was such a relief to hear that Marta was found safe and well.
聽到瑪爾塔安然無恙被找到,真是如釋重負。

After the exam, I felt an incredible sense of relief.
考試過後,我感到輕鬆無比。





Acknowledge
Verb

to acceptadmit, or recognize something, or the truth or existence of something
承認;認可屬實或存在

She acknowledged having been at fault.
她承認自己有過錯。

She acknowledged that she had been at fault.
她承認自己有過錯。

acknowledge that her criticism is just. 
我承認她的批評是公正的。





Loyal
Adjective

firm and not changing in your friendship with or support for a person or an organization, or in your belief in your principles
忠實的,忠誠的

Jack has been a loyal worker in this company for almost 50 years.
傑克是這間公司忠誠的員工,已經工作了快50年了。

She's very loyal to her friends.
她對朋友非常忠誠。





Ship
Verb

to send something, usually a large object or a large quantity of objects or people, to a place far away
運輸,運送

We ship books out to New York every month.
我們每個月都有書運往紐約。

Ship
Noun

large boat for travelling on waterespecially across the sea
(尤指航海的)大船,輪船,艦

sailing ship 大帆船




due to

because of
由於,因爲

The bus was delayed due to heavy snow.
公車因為大雪晚點。

The accident was due to careless driving.
這意外事件起因於駕駛疏忽。

Her absence was due to the storm.
由於風雨交加她沒來。



Accountable
Adjective

Someone who is accountable is completely responsible for what they do and must be able to give a satisfactory reason for it.
應負責任的;應作解釋的;應加以說明的

She is accountable only to the managing director.
她只對總裁負責。

The recent tax reforms have made government more accountable for its spending.
最近的稅務改革使政府的開支更加透明化。

Politicians should be accountable to the public who elected them.
政界人士應對他們的選民負責。



Plentiful
Adjective

If something is plentiful, there is a lot of it available.
豐富的,充足的,多的

Strawberries are plentiful in the summer.
夏天草莓很多。

I took a plentiful supply of games to keep the children amused.
我準備了夠多的遊戲供孩子們玩。

Plenty
pronounnounadverb

 (the state of having) enough or more than enough, or a large amount
豐富,充足,大量

"Would you like some more wine?" "No thanks, I've had plenty."
「還想要點酒嗎?」「不,謝謝,已經足夠了。」

Don't grab at the balloonschildren - there are plenty for everyone.
孩子們,別搶氣球——還有很多,每人都有。

We've got plenty of time before we need to leave for the airport.
去機場前我們有的是時間。

They've always had plenty of money.
他們總是有很多錢。

There's plenty to do here.
這裡有很多事要做。

There's plenty more beer in the fridge.
冰箱裡還有很多啤酒。