Skip to content

Injecting AB test variation with vanilla javascript. [Created March 9, 2017 ]

Notifications You must be signed in to change notification settings

stefan22/toysrus

Repository files navigation

toysrus   🔨

src:  js/scriptSL.js
  • on page load remove entire shopping basket on the right hand side
  • guest section moved to the right, and changed heading to New Customer
  • create Acount moved to the right underneath New Customer
  • change Create Account color set to blue and float CTA's left
  • remove two top borders, one per each section mentioned above
  • add a divider between Registered Customer and New Customer
  • remove required field and move forgotten password on top of sign in
  • extend top blue border across both sections
  • add shopping basket from mobile to desktop
  • render in mobile, desktop and tablet.



better off not using a local server environment to implement variation locally as code will ulitmately be uploaded to the site and it makes it difficult to load external files that way.



pre-variation pop-up screenshot


control desktop pop-up screenshot


control mobile pop-up screenshot


variation desktop pop-up screenshot


variation mobile pop-up screenshot


variation mobile2 pop-up screenshot

Releases

No releases published

Packages

No packages published