Created
October 3, 2016 02:47
-
-
Save steelydylan/2009ef8cab0d8d0a7b996ae88d27bcfc to your computer and use it in GitHub Desktop.
a-blog cms Config.jsの書き換え方
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ACMS.Ready(function(){ | |
$.extend(ACMS.Config,{ | |
countupMark : ".js-countup", | |
autoHeightMark : ".js-auto" | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ACMS.Ready(function(){ ACMS.Config.countupMark = ".js-countup"; ACMS.Config.autoHeightMark = ".js-auto"; });
このような書き方でもいいが、複数設定を変更したいときは冗長になってしまうため、自分はacms-setting.jsのような書き方をして値を変更している。