Advertisement
Guest User

Untitled

a guest
Sep 19th, 2018
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ' это пример
  2. ' как использовать
  3. ' вместо "loyalty program offer - click to view" подставить текст ссылки
  4. ' вместо {#DV_ArchetypeAssigned} подставить то, что будет в попапе - любой текст
  5. ' можно использовать любые тэги < и >, - все должно работать
  6. ' но с одинарными кавычками будет пробелма
  7.  
  8. ' Arch_Appeal - это пример использования. Просто подставить инсерт.
  9.  
  10. ' Created: 8/24/2018
  11. ' Last update: 9/20/2018
  12.  
  13.  
  14.     DV_ArchetypePopup "DV_ArchetypePopup - insert"
  15.     categorical [1..1]
  16.     {
  17.         Popup "<a id=""apopup"" onclick=""#!""><mrRef RefType=""img"" src=""https://dae19d25d2807a6e6331-5940efbe97b3b0b4f6e40c229b9a5e79.ssl.cf5.rackcdn.com/P171100/Information.jpg"" alt=""[i]"" /> loyalty program offer - click to view</a><script>{PopupInsertBegin}<div class=\'apopup-inner\'>{#DV_ArchetypeAssigned}</div>{PopupInsertEnd}</script><style>{PopupInsertStyle}</style>" ' $('<div> ...text insert here... </div>').popup().popup('open')
  18.      
  19.     };
  20.  
  21.     Arch_Appeal "{#DV_ArchetypePopup}
  22.  
  23. Imagine that ExxonMobil's loyalty program consisted of the following offer below.
  24.  
  25. How <b>appealing </b>is this to you?"
  26.     categorical [1..1]
  27.     {
  28.         use SL_AppealScale -
  29.     };
  30.  
  31.  
  32.  
  33. DV_ArchetypePopup.Categories[{Popup}].Label.Inserts["PopupInsertBegin"] = " /*<![CDATA[/**/ $('#apopup').click(function(){ $('<div>"
  34. DV_ArchetypePopup.Categories[{Popup}].Label.Inserts["PopupInsertEnd"] = "</div>').popup().popup('open') }); /*]]>/**/ "
  35. DV_ArchetypePopup.Categories[{Popup}].Label.Inserts["PopupInsertStyle"] = ".apopup-inner { background: #fff; padding: 10px; }"
  36. DV_ArchetypePopup = {Popup}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement