私のウェブサイトIDで、URLに「test」という単語が含まれている場合にjQuery関数を実行したい
私がやろうとしているのは、私のURLに「rest」文字列が含まれている場合、ページ上の要素にマージンを追加することだけですか?
これまでに行ったことを示すために、jSfiddleを追加しました。
$(document).ready(function(){
// How can I check to see if my url contains the word 'TEST' then run the below function?
$('.block-widget').css('margin-top, 252px')
});