Skip to content

Instantly share code, notes, and snippets.

@steelydylan
Created October 3, 2016 02:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steelydylan/2009ef8cab0d8d0a7b996ae88d27bcfc to your computer and use it in GitHub Desktop.
Save steelydylan/2009ef8cab0d8d0a7b996ae88d27bcfc to your computer and use it in GitHub Desktop.
a-blog cms Config.jsの書き換え方
ACMS.Ready(function(){
$.extend(ACMS.Config,{
countupMark : ".js-countup",
autoHeightMark : ".js-auto"
});
});
@steelydylan
Copy link
Author

ACMS.Ready(function(){ ACMS.Config.countupMark = ".js-countup"; ACMS.Config.autoHeightMark = ".js-auto"; });

このような書き方でもいいが、複数設定を変更したいときは冗長になってしまうため、自分はacms-setting.jsのような書き方をして値を変更している。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment