Obsidian Portal
Menu
Sign In / Create Account
JavaScript is currently disabled. Obsidian Portal has a lot of really cool features that use JavaScript. You should check them out. We think you'll have a much more enjoyable experience.
Home
Campaigns
Games Nearby
Plans
Community
Help
Resources
Star Wars Age of Rebellion
Author:
barrelv
Slug:
ffsw_aor
System:
Star Wars: Age of Rebellion
DST Source Code
HTML Template
<!-- Star Wars: Edge of the Empire, Dynamic Style Sheet --> <div class="wrapper base"> <!-- Start --> <div class="tab_bar"> <img alt="BIO" src="https://chainsawxiv.github.io/DST/common/images/fluff.png" class="tab bio_tab" onclick="ffsw_aor_tabClick(this,'bio');"/> <img alt="STATS" src="https://chainsawxiv.github.io/DST/common/images/equipment.png" class="tab stats_tab" onclick="ffsw_aor_tabClick(this,'sheet');"/> </div> <div class="pagehead"> <div class="line"> <ul> <li> <span>Character Name:</span> <span class="dsf dsf_name"></span> </li> <li> <span>Player Name:</span> <span class="dsf dsf_player"></span> </li> </ul> </div> <div class="line"> <ul> <li> <span>Species:</span> <span class="dsf dsf_species"></span> </li> <li> <span>Career:</span> <span class="dsf dsf_career"></span> </li> </ul> </div> <div class="line"> <ul> <li class="span_all"> <span>Specializations:</span> <span class="dsf dsf_specializations"></span> </li> </ul> </div> </div> <div class="main page_sheet" style="display:block;"> <div class="strike"> <div><div class="section_title">Attributes</div></div> </div> <div class="attributes"> <!-- Soak --> <div class="attribute_box"> <div class="attribute_box_shadow"></div> <div class="type"> <div class="text"> Soak Value </div> </div> <div class="attribute"> <div class="text"> <span class="dsf dsf_soak_w"></span> </div> </div> </div> <!-- Wounds --> <div class="attribute_box"> <div class="attribute_box_shadow"></div> <div class="type"> <div class="text"> Wounds </div> </div> <div class="attribute"> <div class="text"> <ul> <li><span class="dsf dsf_wound"></span></li> <li class="divider"></li> <li><span class="dsf dsf_wound_current"></span></li> </ul> </div> </div> <div class="split_box"> <div>Threshold</div> <div>Current</div> </div> </div> <!-- Strain --> <div class="attribute_box"> <div class="attribute_box_shadow"></div> <div class="type"> <div class="text"> Strain </div> </div> <div class="attribute"> <div class="text"> <ul> <li><span class="dsf dsf_strain"></span></li> <li class="divider"></li> <li><span class="dsf dsf_strain_current"></span></li> </ul> </div> </div> <div class="split_box"> <div>Threshold</div> <div>Current</div> </div> </div> <!-- Defense --> <div class="attribute_box"> <div class="attribute_box_shadow"></div> <div class="type"> <div class="text"> Defense </div> </div> <div class="attribute"> <div class="text"> <ul> <li><span class="dsf dsf_ranged_def"></span></li> <li class="divider"></li> <li><span class="dsf dsf_melee_def"></span></li> </ul> </div> </div> <div class="split_box"> <div>Ranged</div> <div>Melee</div> </div> </div> <span class="stretch"></span> </div> <div class="strike"> <div><div class="section_title">Characteristics</div></div> </div> <div class="stats"> <div class="stat_block" key="BR"> <div class="stat"> <div class="stat_background"></div> <div class="text"> <!-- Value --> <span class="dsf dsf_brawn"></span> </div> </div> <div class='type'> <div class='text'> <!-- Description --> brawn </div> </div> </div> <div class="stat_block" key="AG"> <div class="stat"> <div class="stat_background"></div> <div class="text"> <!-- Value --> <span class="dsf dsf_aglity"></span> </div> </div> <div class='type'> <div class='text'> <!-- Description --> agility </div> </div> </div> <div class="stat_block" key="INT"> <div class="stat"> <div class="stat_background"></div> <div class="text"> <!-- Value --> <span class="dsf dsf_intellect"></span> </div> </div> <div class='type'> <div class='text'> <!-- Description --> intellect </div> </div> </div> <div class="stat_block" key="CUN"> <div class="stat"> <div class="stat_background"></div> <div class="text"> <!-- Value --> <span class="dsf dsf_cunning"></span> </div> </div> <div class='type'> <div class='text'> <!-- Description --> cunning </div> </div> </div> <div class="stat_block" key="WIL"> <div class="stat"> <div class="stat_background"></div> <div class="text"> <!-- Value --> <span class="dsf dsf_willpower"></span> </div> </div> <div class='type'> <div class='text'> <!-- Description --> willpower </div> </div> </div> <div class="stat_block" key="PR"> <div class="stat"> <div class="stat_background"></div> <div class="text"> <!-- Value --> <span class="dsf dsf_presence"></span> </div> </div> <div class='type'> <div class='text'> <!-- Description --> presence </div> </div> </div> <span class="stretch"></span> </div> <div class="strike"> <div><div class="section_title">Skills</div></div> </div> <div class="section"> <div class="half_sheet_column"> <div class="skills_headers type"> <div class="tr"> <div class="td"> <span>General</span> </div> <div class="td"> <span>Career</span> </div> <div class="td"> <span>Rank</span> </div> <div class="td"> <span></span> </div> </div> </div> <div class="skills"> <div class="table genskill skilltable"> </div> </div> </div> <div class="half_sheet_column"> <div class="skills_headers type"> <div class="tr"> <div class="td"> <span>Combat</span> </div> <div class="td"> <span>Career</span> </div> <div class="td"> <span>Rank</span> </div> <div class="td"> <span></span> </div> </div> </div> <div class="skills"> <div class="table comskill skilltable"> </div> </div> <div class="skills_headers type"> <div class="tr"> <div class="td"> <span>Knowledge</span> </div> <div class="td"> <span>Career</span> </div> <div class="td"> <span>Rank</span> </div> <div class="td"> <span></span> </div> </div> </div> <div class="skills"> <div class="table knoskill skilltable"> </div> </div> <div class="skill_additional"> <div class='type'> <div class='text'> Additional Skills </div> </div> <div class="skill_additional_value"> <span class="dsf dsf_skills_additional"></span> </div> </div> </div> </div> <div class="section"> </div> <div class="strike"> <div><div class="section_title">Weapons</div></div> </div> <div class="weapons"> <table class="weapon"> <thead> <tr> <th><a href="javascript:void(0)" title="Add New Weapon">+</a></th> <th>Weapon</th> <th>Skill</th> <th>Damage</th> <th>Range</th> <th>Crit</th> <th>Special</th> </tr> </thead> <tbody></tbody> </table> </div> </div> <div class="main page_bio" style="display:none;"> <div class="strike"> <div><div class="section_title">Experience</div></div> </div> <div class="experience"> <div class="attribute_box"> <div class="attribute_box_shadow"></div> <div class="type"> <div class="text"> Total XP </div> </div> <div class="attribute"> <div class="text"> <span class="dsf dsf_earned_xp"></span> </div> </div> </div> <div class="campaign_box"> <span>Campaign: </span><span class="dsf dsf_campaign"></span> </div> <div class="attribute_box"> <div class="attribute_box_shadow"></div> <div class="type"> <div class="text"> Available XP </div> </div> <div class="attribute"> <div class="text"> <span class="dsf dsf_unspent_xp"></span> </div> </div> </div> <span class="stretch"></span> </div> <div class="character_description_container"> <div class="character_description"> <div class="type"> <div class="text"> Character Description </div> </div> <div> <div class="portrait_holder"> <div class="portrait readonly dsf dsf_avatar_image"></div> </div> <div class="character_descriptions"> <div><span>Gender: </span><span class="dsf dsf_gender"></span></div> <div><span>Age: </span><span class="dsf dsf_age"></span></div> <div><span>Height: </span><span class="dsf dsf_height"></span></div> <div><span>Build: </span><span class="dsf dsf_build"></span></div> <div><span>Hair: </span><span class="dsf dsf_hair"></span></div> <div><span>Eyes: </span><span class="dsf dsf_eyes"></span></div> <div><span>Notable Features: </span><div class="text"><span class="dsf dsf_notable"></span></div></div> </div> </div> </div> </div> <div class="motivations_container"> <div class="motivations"> <div class="type"> <div class="text"> <a href="javascript:void(0)" title="Add Motivation">+</a> Motivations </div> </div> <div class="motivation_list"> <ul></ul> </div> </div> </div> <div class="obligations_container"> <div class="obligations"> <div class="type"> <div class="text"> <a href="javascript:void(0)" title="Add Obligation">+</a> Duty </div> </div> <div class="obligation_list"> <ul></ul> </div> </div> </div> <div class="equipment_container"> <div class="equipment"> <div class="type"> <div class="text"> Equipment Log </div> <div class="credits"> <span>Credits:</span><span class="dsf dsf_credits"></span> </div> </div> <div> <div class="log"> <!--<div><div class="title">Weapons & Armor</div><div class="text"><span class="dsf dsf_weapons_and_armor"></span></div></div> <div><div class="title">Personal Gear</div><div class="text"><span class="dsf dsf_personal_gear"></span></div></div>--> <div><div class="title">Weapons & Armor</div><div class="text"><li class="dsf dsf_weapons_and_armor"></li></div></div> <div><div class="title">Personal Gear</div><div class="text"><li class="dsf dsf_personal_gear"></li></div></div> <span class="stretch"></span> </div> </div> </div> </div> <div class="spacer"></div> <div class="critical_injuries_container"> <div class="critical_injuries"> <div class="type"> <div class="text"> <a href="javascript:void(0)" title="Add Critcal Injury">+</a> Critical Injuries </div> </div> <div class="critical_injury_list"> <ul></ul> </div> </div> </div> <div class="talents_container"> <div class="talents"> <div class="type"> <div class="text"> <a href="javascript:void(0)" title="Add Talent">+</a> Talents and Special Abilities </div> </div> <div class="talent_list"> <table class="talent" cellpadding="2" cellspacing="0"> <thead> <tr> <th> </th> <th>Name</th> <th>Page#</th> <th>Summary</th> </tr> </thead> <tbody></tbody> </table> </div> </div> </div> <div class="bio_container"> <div class="bio"> <div class="type"> <div class="text"> Bio </div> </div> <div class="bio_text"> <span class="dsf dsf_bio"></span> </div> </div> </div> <input type="file" class="eote_export_file" /> <a href="javascript:void(0);" class="process_xml_button" title="Future Functionality!">Import XML File</a> <div class="author">Dynamic Style Sheet by <span class="dsf dsf_dst_author"></span> based on the work of BlueEyedFireDragon</div> </div> </div> <!-- ds_ffsw_aor -->
CSS
div.ds_ffsw_aor .base { font-family: Share Tech Mono, Arial, serif; position:relative; background-color:white; z-index: 98; line-height: 1; width:850px; } div.ds_ffsw_aor .jeditable_input input { width:100% !important; height:100% !important; } /* Top Sections *****************************************************/ div.ds_ffsw_aor .line span:not(.dsf) { text-transform: uppercase; } div.ds_ffsw_aor .line span.dsf { font-size:22px; font-style:italic; } div.ds_ffsw_aor .line ul { -webkit-column-count: 2; /* Chrome, Safari, Opera */ -moz-column-count: 2; /* Firefox */ column-count: 2; padding:0px; margin:0px; } div.ds_ffsw_aor .line ul li { border-bottom: solid #000 1px; list-style-type: none; } div.ds_ffsw_aor .line ul li span_all { -webkit-column-span: all; column-span: all; list-style-type: none; } /* Section Headers *****************************************************/ div.ds_ffsw_aor .strike { display: block; text-align: center; overflow: hidden; white-space: nowrap; padding-top:10px; } div.ds_ffsw_aor .section_title { height:20px; width: 200px; text-transform: uppercase; background: linear-gradient(135deg, transparent 7px, #495558 0) top left, linear-gradient(225deg, transparent 7px, #495558 0) top right, linear-gradient(315deg, transparent 7px, #495558 0) bottom right, linear-gradient(45deg, transparent 7px, #495558 0) bottom left; background-size: 50% 50%; background-repeat: no-repeat; color: #fff; padding-top: 2px; } div.ds_ffsw_aor .strike > div { position: relative; display: inline-block; } div.ds_ffsw_aor .strike > div:before, div.ds_ffsw_aor .strike > div:after { content: ""; position: absolute; top: 50%; width: 9999px; height: 3px; background: #761213; } div.ds_ffsw_aor .strike > div:before { right: 100%; margin-right: 15px; } div.ds_ffsw_aor .strike > div:after { left: 100%; margin-left: 15px; } /* Stats Section *****************************************************/ div.ds_ffsw_aor .stats { text-align: justify; -ms-text-justify: distribute-all-lines; text-justify: distribute-all-lines; height:120px; min-width: 560px } div.ds_ffsw_aor .stat_block { width: 110px; text-align:center; display:inline-block; *display: inline; } div.ds_ffsw_aor .stat { width: 80px; height: 80px; border-radius: 80px 80px 80px 80px; background: #fff; margin-top: 3px; padding: 0px; display:inline-block; *display: inline; border: solid #000 3px; margin-left:auto; margin-right: auto; position:relative; } div.ds_ffsw_aor .stat:before { content: ""; position: absolute; top: 0px; left: -20px; width: 120px; height: 20px; background: linear-gradient(135deg, transparent 6px, #51634B 0) top left, linear-gradient(225deg, transparent 6px, #51634B 0) top right, linear-gradient(315deg, transparent 6px, #51634B 0) bottom right, linear-gradient(45deg, transparent 6px, #51634B 0) bottom left; background-size: 50% 50%; background-repeat: no-repeat; z-index: -1; } div.ds_ffsw_aor .stat:after { content: ""; position: absolute; top: 25px; left: -20px; width: 120px; height: 20px; background: linear-gradient(135deg, transparent 6px, #51634B 0) top left, linear-gradient(225deg, transparent 6px, #51634B 0) top right, linear-gradient(315deg, transparent 6px, #51634B 0) bottom right, linear-gradient(45deg, transparent 6px, #51634B 0) bottom left; background-size: 50% 50%; background-repeat: no-repeat; z-index: -1; } div.ds_ffsw_aor .stat_background { position: absolute; top: 50px; left: -20px; width: 120px; height: 20px; background: linear-gradient(135deg, transparent 6px, #51634B 0) top left, linear-gradient(225deg, transparent 6px, #51634B 0) top right, linear-gradient(315deg, transparent 6px, #51634B 0) bottom right, linear-gradient(45deg, transparent 6px, #51634B 0) bottom left; background-size: 50% 50%; background-repeat: no-repeat; z-index: -1; } div.ds_ffsw_aor .stat_background:after { content: ""; position: absolute; top: 25px; left: 0px; width: 120px; height: 46px; background: linear-gradient(135deg, transparent 6px, #51634B 0) top left, linear-gradient(225deg, transparent 6px, #51634B 0) top right, linear-gradient(315deg, transparent 6px, #51634B 0) bottom right, linear-gradient(45deg, transparent 6px, #51634B 0) bottom left; background-size: 50% 50%; background-repeat: no-repeat; z-index: -1; } div.ds_ffsw_aor .stat .text { font-family: Share Tech Mono, Arial, serif; text-align: center; font-size: 48pt; padding-top: 7px; } div.ds_ffsw_aor .type { /*background: #860000;*/ height: 24px; width: 100%; margin-top: 10px; /*border-radius: 5px 5px 5px 5px;*/ background: linear-gradient(135deg, transparent 5px, #761213 0) top left, linear-gradient(225deg, transparent 5px, #761213 0) top right, linear-gradient(315deg, transparent 5px, #761213 0) bottom right, linear-gradient(45deg, transparent 5px, #761213 0) bottom left; background-size: 51% 50%; background-repeat: no-repeat; } div.ds_ffsw_aor .type .text { font-family: Share Tech Mono, Arial, serif; padding-top: 3px; font-size: 12pt; color: #fff; text-transform: uppercase; text-align: center; } /* Attribute Sections *****************************************************/ div.ds_ffsw_aor .attributes { padding-top:5px; position:relative; text-align: justify; -ms-text-justify: distribute-all-lines; text-justify: distribute-all-lines; height:80px; min-width: 560px } div.ds_ffsw_aor .attribute_box .attribute_box_shadow { content: ""; position:absolute; top: -3px; height: 66px; width: 166px; left:-3px; background: linear-gradient(135deg, transparent 10px, #000 0) top left, linear-gradient(225deg, transparent 10px, #000 0) top right, linear-gradient(315deg, transparent 10px, #000 0) bottom right, linear-gradient(45deg, transparent 10px, #000 0) bottom left; background-size: 51% 50%; background-repeat: no-repeat; z-index: -1; } div.ds_ffsw_aor .attribute_box { display:inline-block; *display: inline; position: relative; width: 160px; height: 60px; background: linear-gradient(135deg, transparent 10px, #fff 0) top left, linear-gradient(225deg, transparent 10px, #fff 0) top right, linear-gradient(315deg, transparent 10px, #fff 0) bottom right, linear-gradient(45deg, transparent 10px, #fff 0) bottom left; background-size: 51% 50%; background-repeat: no-repeat; vertical-align: top; } div.ds_ffsw_aor .attribute_box .split_box { left: -10px; position: absolute; top: 50%; width: 180px; height: 50px; background: linear-gradient(135deg, transparent 5px, #761213 0) top left, linear-gradient(225deg, transparent 5px, #7DD4DC 0) top right, linear-gradient(315deg, transparent 5px, #7DD4DC 0) bottom right, linear-gradient(45deg, transparent 5px, #761213 0) bottom left; background-size: 51% 50%; background-repeat: no-repeat; z-index: -2; } div.ds_ffsw_aor .attribute_box .split_box div:first-child { width: 50%; position: absolute; bottom: 0px; text-align: right; text-transform: uppercase; color: #fff; font-size: 12px; right: 50%; padding-right: 5px; } div.ds_ffsw_aor .attribute_box .split_box div:last-child { width:50%; position:absolute; bottom:0px; text-align: left; text-transform:uppercase; color:#000; font-size:12px; left: 50%; padding-left:5px; } div.ds_ffsw_aor .attribute_box .type { position: absolute; margin-left: 5px; width: 140px; height: 18px; /* top: 5px; */ margin-top: 5px; left: 4px; background: linear-gradient(135deg, transparent 5px, #313E53 0) top left, linear-gradient(225deg, transparent 5px, #313E53 0) top right, linear-gradient(315deg, transparent 5px, #313E53 0) bottom right, linear-gradient(45deg, transparent 5px, #313E53 0) bottom left; background-size: 51% 50%; background-repeat: no-repeat; z-index: 1; } div.ds_ffsw_aor .attribute_box .type .text { text-align: center; padding-top: 2px; font-size: 10pt; } div.ds_ffsw_aor .attribute_box .attribute { font-size: 24pt; text-align: center; padding-top: 21px; } div.ds_ffsw_aor .attribute_box .attribute .text ul { -webkit-column-count: 2; /* Chrome, Safari, Opera */ -moz-column-count: 2; /* Firefox */ column-count: 2; padding:0px; margin:0px; list-style:none } div.ds_ffsw_aor .attribute_box .attribute .text li:first-child { position:absolute; left:25px; top:25%; list-style:none; } div.ds_ffsw_aor .attribute_box .attribute .text li:last-child { position:absolute; right:25px; top:25%; list-style:none; } div.ds_ffsw_aor .attribute_box .attribute .text li.divider { width: 2px; height: 99%; background-color: #000; position: absolute; left: 49%; list-style: none; } div.ds_ffsw_aor .attribute li { width:36px; height:36px; } /* Skills Sections *****************************************************/ div.ds_ffsw_aor .skills { /** height:850px;**/ } div.ds_ffsw_aor .Genskills { height:850px; } div.ds_ffsw_aor .Knoskills { height:650px; } div.ds_ffsw_aor .table { display: inline-block; /* required to keep a nice spacing between columns */ /* -webkit-column-count: 2;*/ -webkit-column-gap: 10px; /*-moz-column-count: 2;*/ -moz-column-gap: 10px; /*column-count: 2;*/ column-gap: 10px; /* width:50%*/ } div.ds_ffsw_aor .section{ padding:0px 0px 5px 0px; margin:0px 0px 5px 1px; } div.ds_ffsw_aor .half_sheet_column{ width:415px; display:inline-block; vertical-align:top; } div.ds_ffsw_aor .skills .tr, .skills_headers .tr { display: inline-block; } div.ds_ffsw_aor .skills .td, .skills_headers .td { display: inline-block; /*padding: 5px;*/ text-align: left; } div.ds_ffsw_aor .skilltable .tr:nth-child(even){ background-color: #A79B86; } div.ds_ffsw_aor .skilltable .tr:nth-child(odd) { background-color: #E6F6FC; } div.ds_ffsw_aor .skilltable .td { padding:0px; height: 24px; } div.ds_ffsw_aor .skills_headers { height: 24px; } div.ds_ffsw_aor .skills_headers .td { height: auto; text-align: center; color: white; text-transform: uppercase; padding-top: 4px; } div.ds_ffsw_aor .skills_headers .td:nth-child(1) { width: 175px; } div.ds_ffsw_aor .skills_headers .td:nth-child(2) { width: 80px; } div.ds_ffsw_aor .skills_headers .td:nth-child(3) { width: 60px; } div.ds_ffsw_aor .skills_headers .td:nth-child(4) { width: 82px; } div.ds_ffsw_aor .skilltable .td:nth-child(1) { width: 185px; padding-left: 5px; } div.ds_ffsw_aor .skilltable .td:nth-child(2) { width: 80px; text-align: center; } div.ds_ffsw_aor .skilltable .td:nth-child(3) { width: 60px; text-align:center; } div.ds_ffsw_aor .skilltable .td:nth-child(4) { width: 82px; } div.ds_ffsw_aor .skill_additional { width: 100%; height: 160px; background: linear-gradient(135deg, transparent 5px, #CECFCB 0) top left, linear-gradient(225deg, transparent 5px, #CECFCB 0) top right, linear-gradient(315deg, transparent 5px, #CECFCB 0) bottom right, linear-gradient(45deg, transparent 5px, #CECFCB 0) bottom left; background-size: 51% 50%; background-repeat: no-repeat; } div.ds_ffsw_aor .skill_additional_value { padding: 5px; } /* Misc Sections *****************************************************/ div.ds_ffsw_aor .green { width: 16px; height: 18px; background: linear-gradient(135deg, transparent 6px, #3CA947 0) top left, linear-gradient(225deg, transparent 6px, #3CA947 0) top right, linear-gradient(315deg, transparent 6px, #3CA947 0) bottom right, linear-gradient(45deg, transparent 6px, #3CA947 0) bottom left; background-size: 50% 50%; background-repeat: no-repeat; float:left; list-style: none; margin-top: 8px; } div.ds_ffsw_aor .yellow { width: 16px; height: 16px; background: linear-gradient(135deg, transparent 3px, #CBD701 0) top left, linear-gradient(225deg, transparent 3px, #CBD701 0) top right, linear-gradient(315deg, transparent 3px, #CBD701 0) bottom right, linear-gradient(45deg, transparent 3px, #CBD701 0) bottom left; background-size: 50% 50%; background-repeat: no-repeat; float:left; list-style: none; margin-top: 8px; } div.ds_ffsw_aor .stretch { width: 100%; display: inline-block; font-size: 0; line-height: 0 } div.ds_ffsw_aor .spacer { height: 10px; background: #fff; } div.ds_ffsw_aor .eote_export_file { display: none; } div.ds_ffsw_aor .base table tr th, .base table tr td { padding:3px; } div.ds_ffsw_aor .process_xml_button { display: none; } /* Wespon Sections *****************************************************/ div.ds_ffsw_aor .weapon { width:100%; border-collapse: collapse; } div.ds_ffsw_aor .weapon th { text-align:left; } div.ds_ffsw_aor .weapon th:first-child a { color: #fff; text-decoration: none; width: 20px; background-color: #A79B86; padding: 2px 5px; } div.ds_ffsw_aor .weapon tbody tr:nth-child(even) { background-color: #A79B86; } div.ds_ffsw_aor .weapon tbody tr:nth-child(odd) { background-color: #E6F6FC; } /* Experience Sections *****************************************************/ div.ds_ffsw_aor .experience { text-align: justify; -ms-text-justify: distribute-all-lines; text-justify: distribute-all-lines; min-width: 560px } div.ds_ffsw_aor .experience .attribute_box { text-align:center; display:inline-block; *display: inline; } div.ds_ffsw_aor .experience .campaign_box { width: 300px; text-align:center; display:inline-block; *display: inline; padding-top: 10px; } div.ds_ffsw_aor .experience .campaign_box span:first-child { text-transform:uppercase; } /* Motivation Sections *****************************************************/ div.ds_ffsw_aor .motivations_container { width: 66%; background: #CECFCB; } div.ds_ffsw_aor .motivations { text-align:right; background: linear-gradient(135deg, #fff 0px, #CECFCB 0) top left, linear-gradient(225deg, #fff 6px, #CECFCB 0) top right, linear-gradient(315deg, #fff 0px, #CECFCB 0) bottom right, linear-gradient(45deg, #fff 6px, #CECFCB 0) bottom left; background-size: 50% 50%; background-repeat: no-repeat; min-height: 200px; } div.ds_ffsw_aor .motivations .type { background:none; } div.ds_ffsw_aor .motivations .type .text { text-align: right; padding-top: 4px; padding-right: 10px; font-size: 12pt; color: #000; } div.ds_ffsw_aor .motivations .type .text a { color: #fff; text-decoration: none; width: 20px; background-color: #A79B86; padding: 2px 5px; } div.ds_ffsw_aor .motivations .motivation_list ul { margin:0px; padding:0px; } div.ds_ffsw_aor .motivations .motivation_list li div:first-child { border-bottom: 1px solid #000; } div.ds_ffsw_aor .motivations .motivation_list li div:first-child a { float:right; } div.ds_ffsw_aor .motivations .motivation_list li { list-style:none; text-align:left; padding: 10px; } div.ds_ffsw_aor .motivations_container .motivation_list ul div span:first-child { text-transform:uppercase; } div.ds_ffsw_aor .motivations_container .motivation_list ul div span:not(:first-child) { font-size:22px; } /* Obligations Sections *****************************************************/ div.ds_ffsw_aor .obligations_container { width: 66%; background: #CECFCB; } div.ds_ffsw_aor .obligations { text-align:right; background: linear-gradient(135deg, #fff 0px, #CECFCB 0) top left, linear-gradient(225deg, #fff 6px, #CECFCB 0) top right, linear-gradient(315deg, #fff 0px, #CECFCB 0) bottom right, linear-gradient(45deg, #fff 6px, #CECFCB 0) bottom left; background-size: 50% 50%; background-repeat: no-repeat; min-height: 200px; } div.ds_ffsw_aor .obligations .type { background:none; } div.ds_ffsw_aor .obligations .type .text { text-align: right; padding-top: 4px; padding-right: 10px; font-size: 12pt; color: #000; } div.ds_ffsw_aor .obligations type .text a { color: #fff; text-decoration: none; width: 20px; background-color: #A79B86; padding: 2px 5px; } div.ds_ffsw_aor .obligations .obligation_list ul { margin:0px; padding:0px; } div.ds_ffsw_aor .obligations .obligation_list li div:nth-child(-n+2) { border-bottom: 1px solid #000; } div.ds_ffsw_aor .obligations .obligation_list li div:first-child a { float:right; } div.ds_ffsw_aor .obligations .obligation_list li { list-style:none; text-align:left; padding: 10px; } div.ds_ffsw_aor .obligations_container .obligation_list ul div span:first-child { text-transform:uppercase; } div.ds_ffsw_aor .obligations_container .obligation_list ul div span:not(:first-child) { font-size:22px; } /* Equipment Sections *****************************************************/ div.ds_ffsw_aor .equipment_container { width: 66%; background: #CECFCB; } div.ds_ffsw_aor .equipment { text-align:right; background: linear-gradient(135deg, #fff 0px, #CECFCB 0) top left, linear-gradient(225deg, #fff 6px, #CECFCB 0) top right, linear-gradient(315deg, #fff 0px, #CECFCB 0) bottom right, linear-gradient(45deg, #fff 6px, #CECFCB 0) bottom left; background-size: 50% 50%; background-repeat: no-repeat; } div.ds_ffsw_aor .equipment .type { background:none; } div.ds_ffsw_aor .equipment .type .text { text-align: right; padding-top: 4px; padding-right: 10px; font-size: 12pt; color: #000; } div.ds_ffsw_aor .equipment .type .credits { float: left; margin-left: 10px; background-color: #fff; width: 45%; text-align: left; margin-top: -10px; padding: 3px 0px 3px 0px; } div.ds_ffsw_aor .equipment .type .credits span:first-child { text-transform:uppercase; } div.ds_ffsw_aor .equipment .type .credits span { padding-left: 10px; } div.ds_ffsw_aor .equipment .log { text-align: justify; -ms-text-justify: distribute-all-lines; text-justify: distribute-all-lines; padding-bottom: 10px; padding-top: 20px; } div.ds_ffsw_aor .equipment .log div { vertical-align: top; width: 45%; display:inline-block; *display: inline; margin: 0px 10px 0px 10px; background-color: #fff; text-align:center; padding: 5px 0px 5px 0px; } div.ds_ffsw_aor .equipment .log .title { width: 80%; border-bottom: 1px solid #000; text-transform:uppercase; } div.ds_ffsw_aor .equipment .log .text { width:100%; text-align: left; margin: 0px; padding-top: 5px; font-size: 22px; min-height:150px; } div.ds_ffsw_aor .equipment .log .text li { padding: 10px; list-style: none; } /* Character Desc Sections *****************************************************/ div.ds_ffsw_aor .character_description_container { float:right; width:33%; background: #CECFCB; margin-top:10px; } div.ds_ffsw_aor .character_description { text-align:right; background: linear-gradient(135deg, #fff 0px, #CECFCB 0) top left, linear-gradient(225deg, #fff 0px, #CECFCB 0) top right, linear-gradient(315deg, #fff 6px, #CECFCB 0) bottom right, linear-gradient(45deg, #fff 6px, #CECFCB 0) bottom left; background-size: 50% 50%; background-repeat: no-repeat; padding: 0px 0px 5px 0px; } div.ds_ffsw_aor .character_description .type { background:none; margin: 0px; } div.ds_ffsw_aor .character_description .type .text { text-align: right; padding-top: 4px; padding-right: 10px; font-size: 12pt; color: #000; } div.ds_ffsw_aor .character_descriptions div { padding: 10px 0px 10px 0px; margin: 0px 10px 0px 10px; text-align: left; border-bottom: 1px solid #000; } div.ds_ffsw_aor .character_descriptions div span:first-child { text-transform: uppercase; } div.ds_ffsw_aor .character_descriptions div:last-child { border:none; } div.ds_ffsw_aor .character_descriptions .text { max-height: 100px; overflow-y:auto; } div.ds_ffsw_aor .character_descriptions .text span:first-child { text-transform:none; overflow-y:scroll; } /* Critical Injuries Sections *****************************************************/ div.ds_ffsw_aor .critical_injuries_container { min-height: 100px; } div.ds_ffsw_aor .critical_injuries .type .text a { color: #fff; text-decoration: none; width: 20px; background-color: #A79B86; padding: 2px 5px; } div.ds_ffsw_aor .critical_injuries { text-align:right; background: linear-gradient(135deg, #fff 6px, #CECFCB 0) top left, linear-gradient(225deg, #fff 6px, #CECFCB 0) top right, linear-gradient(315deg, #fff 6px, #CECFCB 0) bottom right, linear-gradient(45deg, #fff 6px, #CECFCB 0) bottom left; background-size: 50% 50%; background-repeat: no-repeat; min-height: 200px; padding-bottom: 10px; } div.ds_ffsw_aor .critical_injuries .type { background:none; margin: 0px; } div.ds_ffsw_aor .critical_injuries .type .text { text-align: right; padding-top: 4px; padding-right: 10px; font-size: 12pt; color: #000; } div.ds_ffsw_aor .critical_injuries_descriptions div { padding: 10px 0px 10px 0px; margin: 0px 10px 0px 10px; text-align: left; border-bottom: 1px solid #000; } div.ds_ffsw_aor .critical_injuries_descriptions div span:first-child { text-transform: uppercase; } div.ds_ffsw_aor .critical_injuries_descriptions .text, .character_descriptions div:last-child { border:none; } div.ds_ffsw_aor .critical_injuries_descriptions .text { max-height: 100px; overflow-y:auto; } div.ds_ffsw_aor .critical_injuries_descriptions .text span:first-child { text-transform:none; overflow-y:scroll; } div.ds_ffsw_aor .critical_injury_list { overflow:auto; } div.ds_ffsw_aor .critical_injuries .critical_injury_list ul { margin:0px; padding:0px; } div.ds_ffsw_aor .critical_injuries .critical_injury_list li div:last-child { border-bottom: 1px solid #000; } div.ds_ffsw_aor .critical_injuries .critical_injury_list li div:first-child a { float:right; } div.ds_ffsw_aor .critical_injuries .critical_injury_list li { list-style:none; text-align:left; padding: 10px; } div.ds_ffsw_aor .critical_injuries_container .critical_injury_list ul div span:first-child { text-transform:uppercase; } div.ds_ffsw_aor .critical_injuries_container .critical_injury_list ul div span:not(:first-child) { font-size:1em; } /* Talents Sections *****************************************************/ div.ds_ffsw_aor .talents_container { padding-top: 10px; } div.ds_ffsw_aor .talents { text-align:right; background: linear-gradient(135deg, #fff 6px, #CECFCB 0) top left, linear-gradient(225deg, #fff 6px, #CECFCB 0) top right, linear-gradient(315deg, #fff 6px, #CECFCB 0) bottom right, linear-gradient(45deg, #fff 6px, #CECFCB 0) bottom left; background-size: 50% 50%; background-repeat: no-repeat; min-height: 200px; padding-bottom: 10px; } div.ds_ffsw_aor .talents .type .text a { color: #fff; text-decoration: none; width: 20px; background-color: #A79B86; padding: 2px 5px; } div.ds_ffsw_aor .talents .type { background:none; margin: 0px; } div.ds_ffsw_aor .talents .type .text { text-align: right; padding-top: 4px; padding-right: 10px; font-size: 12pt; color: #000; } div.ds_ffsw_aor .talents table.talent { margin-left: auto; margin-right: auto; width: inherit; } div.ds_ffsw_aor .talents table.talent th, .talents table.talent td{ text-align:left; } div.ds_ffsw_aor .talents table.talent thead { background: #CECFCB ; } div.ds_ffsw_aor .talents table.talent tbody tr:nth-child(even){ background-color: #A79B86; } div.ds_ffsw_aor .talents table.talent tbody tr:nth-child(odd){ background-color: #E6F6FC; } div.ds_ffsw_aor .talents table.talent th:nth-child(1) { width:25px; } div.ds_ffsw_aor .talents table.talent th:nth-child(2) { width:150px; } div.ds_ffsw_aor .talents table.talent th:nth-child(4) { width:600px; } div.ds_ffsw_aor .talents talent_list ul { padding:0px; margin:0px; } div.ds_ffsw_aor .talents talent_list li { list-style:none; text-align:left; } div.ds_ffsw_aor .talents talent_list li div:not(:first-child) { float:left; } div.ds_ffsw_aor .talents talent_list li div span { vertical-align: top; } /* Talents Sections *****************************************************/ div.ds_ffsw_aor .bio_container { padding-top: 10px; } div.ds_ffsw_aor .bio { text-align:right; background: linear-gradient(135deg, #fff 6px, #CECFCB 0) top left, linear-gradient(225deg, #fff 6px, #CECFCB 0) top right, linear-gradient(315deg, #fff 6px, #CECFCB 0) bottom right, linear-gradient(45deg, #fff 6px, #CECFCB 0) bottom left; background-size: 50% 50%; background-repeat: no-repeat; min-height: 100px; padding-bottom: 10px; } div.ffsw_aor_bio type .text a { color: #fff; text-decoration: none; width: 20px; background-color: #A79B86; padding: 2px 5px; } div.ds_ffsw_aor .bio .type { background:none; margin: 0px; } div.ds_ffsw_aor .bio .type .text { text-align: right; padding-top: 4px; padding-right: 10px; font-size: 12pt; color: #000; } div.ds_ffsw_aor .bio_text { text-align:left; padding: 0px 5px; } div.ds_ffsw_aor .author { float:right; font-size: 10px; } /* Portrait */ div.ds_ffsw_aor .character_descriptions .portrait_holder{ display:inline-block; position:relative; float:right; padding:0px 0px 0px 0px; margin:3px 3px 5px 10px; border-style:solid; border-width:0px; border-color:#554220; } div.ds_ffsw_aor .portrait_holder .character_descriptions .portrait .avatar_image { min-height: 140px; min-width: 140px; background-color: white; margin: 0px; padding: 0px; max-height: 300px; max-width: 240px; } div.ds_ffsw_aor .tab_bar{ position: absolute; top: -58px; right: 0px; z-index: 3; background-image: url('http://db4sgowjqfwig.cloudfront.net/campaigns/139262/assets/608245/switch2.png'); background-position: top center; background-repeat: no-repeat; height: 58px; width: 212px; text-align: center; } div.ds_ffsw_aor .bio_tab{ position: absolute; top: 1px; right: 68px; height: 50px; } div.ds_ffsw_aor .stats_tab{ position: absolute; top: 1px; right: 116px; height: 50px; } div.ds_ffsw_aor tab{ display: inline-block; float: right; } div.ds_ffsw_aor .pagehead{ border-color: #761213; border-style: solid; border-width: 3px; padding: 5px; }
Javascript
var skills = { "Skills": { "GenSkill": [ { "Key": "ASTRO", "Name": "Astrogation", "CharKey": "INT", "Type": "General" }, { "Key": "ATHL", "Name": "Athletics", "CharKey": "BR", "Type": "General" }, { "Key": "CHARM", "Name": "Charm", "CharKey": "PR", "Type": "General" }, { "Key": "COERC", "Name": "Coercion", "CharKey": "WIL", "Type": "General" }, { "Key": "COMP", "Name": "Computers", "CharKey": "INT", "Type": "General" }, { "Key": "COOL", "Name": "Cool", "CharKey": "PR", "Type": "General" }, { "Key": "COORD", "Name": "Coordination", "CharKey": "AG", "Type": "General" }, { "Key": "DECEP", "Name": "Deception", "CharKey": "CUN", "Type": "General" }, { "Key": "DISC", "Name": "Discipline", "CharKey": "WIL", "Type": "General" }, { "Key": "LEAD", "Name": "Leadership", "CharKey": "PR", "Type": "General" }, { "Key": "MECH", "Name": "Mechanics", "CharKey": "INT", "Type": "General" }, { "Key": "MED", "Name": "Medicine", "CharKey": "INT", "Type": "General" }, { "Key": "NEG", "Name": "Negotiation", "CharKey": "PR", "Type": "General" }, { "Key": "PERC", "Name": "Perception", "CharKey": "CUN", "Type": "General" }, { "Key": "PILOTPL", "Name": "Piloting - Planetary", "CharKey": "AG", "Type": "General" }, { "Key": "PILOTSP", "Name": "Piloting - Space", "CharKey": "AG", "Type": "General" }, { "Key": "RESIL", "Name": "Resilience", "CharKey": "BR", "Type": "General" }, { "Key": "SKUL", "Name": "Skulduggery", "CharKey": "CUN", "Type": "General" }, { "Key": "STEAL", "Name": "Stealth", "CharKey": "AG", "Type": "General" }, { "Key": "SW", "Name": "Streetwise", "CharKey": "CUN", "Type": "General" }, { "Key": "SURV", "Name": "Survival", "CharKey": "CUN", "Type": "General" }, { "Key": "VIGIL", "Name": "Vigilance", "CharKey": "WIL", "Type": "General" }, ], "ComSkill": [ { "Key": "BRAWL", "Name": "Brawl", "CharKey": "BR", "Type": "Combat" }, { "Key": "GUNN", "Name": "Gunnery", "CharKey": "AG", "Type": "Combat" }, { "Key": "MELEE", "Name": "Melee", "CharKey": "BR", "Type": "Combat" }, { "Key": "RANGHVY", "Name": "Ranged - Heavy", "CharKey": "AG", "Type": "Combat" }, { "Key": "RANGLT", "Name": "Ranged - Light", "CharKey": "AG", "Type": "Combat" } ], "KnoSkill": [ { "Key": "CORE", "Name": "Core Worlds", "CharKey": "INT", "Type": "Knowledge" }, { "Key": "EDU", "Name": "Education", "CharKey": "INT", "Type": "Knowledge" }, { "Key": "LORE", "Name": "Lore", "CharKey": "INT", "Type": "Knowledge" }, { "Key": "OUT", "Name": "Outer Rim", "CharKey": "INT", "Type": "Knowledge" }, { "Key": "UND", "Name": "Underworld", "CharKey": "INT", "Type": "Knowledge" }, { "Key": "XEN", "Name": "Xenology", "CharKey": "INT", "Type": "Knowledge" }, { "Key": "WARF", "Name": "Warfare", "Source": "Age of Rebellion Core Rulebook", "CharKey": "INT", "Type": "Knowledge" } ] } }; // Data Preload function ffsw_aor_dataPreLoad(options) { var i; aisleten.characters.jeditablePlaceholder = "##"; ffsw_aor_options = options; var weapons = [], motivations = [], obligations = [], criticals = [], talents = []; // remove add buttons if not editable if (!options.isEditable) { $(".weapon th a").remove(); $(".motivations .type .text a").remove(); $(".obligations .type .text a").remove(); $(".critical_injuries .type .text a").remove(); $(".talents .type .text a").remove(); $(".eote_export_file").remove(); $(".process_xml_button").remove(); } else { $(".bio_container").remove() } // load previously saved values $.each(dynamic_sheet_attrs, function (key) { var id = key.substring(key.lastIndexOf("_") + 1); if (key.substring(0, 5).toLowerCase() === "weapo") { if (weapons.indexOf(id) === -1) { $(".weapons table.weapon tbody").append( "<tr>" + "<td>" + (options.isEditable ? "<a href='javascript:void(0);' title='Delete Weapon'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAB3RJTUUH3wgeATEhJPwS7AAAAAlwSFlzAAAK8AAACvABQqw0mAAAAx9JREFUeNpj/P//PwM1ARNVTQMCFhjj9o0bem9vXCtiY2JiE9c3nCctL78PKPyPkP6P7965PDh71vvSmdP3fDIyJzGCvHzx7FlNpc/vznJ//8L5/+Uzhr8vnv4/zyOyUSchLZubh+cZNp+9fvo05M3mzY0Pz51h2/PtR3tITs5KMzOzz2AD7965w3Ng5vTJ4SrSMRyf3rD8f3Kf4f/jOwz3/nE8Zm2fFaasqXkCZtKvnz9Vr86aNZ197x77xZ8+z7QuLGx1dXN7zs7ODlEAMhCEv379yrRiwQLjFeH+Wz77m/79ZCb9/6Uq7/+rWtIfzxw86AFUw3T7zOn089aWn3crKbwtT0iIef78OStMPwwzoAt8+vSJeVF/r/duDZlr98XZ/98UYPl/Ulzo857cnB1nuTn/LefleTChrc3u27dvjOh6sRoIw48fP+abGR3ZfZqL5dc5Fsb/pxkZ/i/i472zfPFivd+/f+PUhzPZyMjIfLIvKdv5lUfg258/IMUMDGKMDAKqqqo/WVhYGHACXDad2LIl6jg/3/dTQCWLRIRvrVFTuXaFm/n/cl31Ey9fvuTCpQ+r4N6FC1NPsLH9ARm2jo/32Y4tWwxePH8uttnD8ehzec7/U2IjWv/8+UNcGO5esiTsBAvLnzNMDP+PsjP/XDxlSghM88ePH4UPhHuefqTF+23dsqVGBA08deiQ/iFOji9nmRn/X+Rg+j85Pm7i9+/fUZLGh/fvpc/72txfrKe4F+h1FpwGfvnyhWmlqsrJ82yM/68Cw2qFvualp0+fimBzxZP7963umih96y0pDvj37x92A1fPmuVwTUnm3w0h9v/XJLn/7N261QNXwIPwhW1b6hYoiB9+9OgRC9Zk8/ryJUt+EwNGPiVphn8Swj8NLS3P4ysV9Dy8urQ8fXk2rlihgbX4+svJ+Y7PxJCB31if4ZucwntWVtYf+AxkZGT8odLUnvvzxQtVkLfh4rAC9sSxY8I/N606psPFrLSHT7opNK+glYmJiVDxxfDjxw8WDg6OP1gT9t27d/nPnDql9fPnTzZ84YcPw11ILQAANFSl+WXVtCYAAAAASUVORK5CYII=' /></a>" : "") + "</td>" + "<td>" + "<span class='dsf dsf_weapon_name_" + id + "'>" + "</td>" + "<td>" + "<span class='dsf dsf_weapon_skill_" + id + "'>" + "</td>" + "<td>" + "<span class='dsf dsf_weapon_damage_" + id + "'>" + "</td>" + "<td>" + "<span class='dsf dsf_weapon_range_" + id + "'>" + "</td>" + "<td>" + "<span class='dsf dsf_weapon_crit_" + id + "'>" + "</td>" + "<td>" + "<span class='dsf dsf_weapon_special_" + id + "'>" + "</td></tr>" ); weapons.push(id); } } if (key.substring(0, 5).toLowerCase() === "motiv") { //var id = key.substring(key.lastIndexOf("_") + 1); if (motivations.indexOf(id) === -1) { $(".motivations_container .motivation_list ul").append( "<li>" + "<div><span>Type: </span><span class='dsf dsf_motivation_type_" + id + "'></span>" + (options.isEditable ? "<a href='javascript:void(0);' title='Delete Motivation'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAB3RJTUUH3wgeATEhJPwS7AAAAAlwSFlzAAAK8AAACvABQqw0mAAAAx9JREFUeNpj/P//PwM1ARNVTQMCFhjj9o0bem9vXCtiY2JiE9c3nCctL78PKPyPkP6P7965PDh71vvSmdP3fDIyJzGCvHzx7FlNpc/vznJ//8L5/+Uzhr8vnv4/zyOyUSchLZubh+cZNp+9fvo05M3mzY0Pz51h2/PtR3tITs5KMzOzz2AD7965w3Ng5vTJ4SrSMRyf3rD8f3Kf4f/jOwz3/nE8Zm2fFaasqXkCZtKvnz9Vr86aNZ197x77xZ8+z7QuLGx1dXN7zs7ODlEAMhCEv379yrRiwQLjFeH+Wz77m/79ZCb9/6Uq7/+rWtIfzxw86AFUw3T7zOn089aWn3crKbwtT0iIef78OStMPwwzoAt8+vSJeVF/r/duDZlr98XZ/98UYPl/Ulzo857cnB1nuTn/LefleTChrc3u27dvjOh6sRoIw48fP+abGR3ZfZqL5dc5Fsb/pxkZ/i/i472zfPFivd+/f+PUhzPZyMjIfLIvKdv5lUfg258/IMUMDGKMDAKqqqo/WVhYGHACXDad2LIl6jg/3/dTQCWLRIRvrVFTuXaFm/n/cl31Ey9fvuTCpQ+r4N6FC1NPsLH9ARm2jo/32Y4tWwxePH8uttnD8ehzec7/U2IjWv/8+UNcGO5esiTsBAvLnzNMDP+PsjP/XDxlSghM88ePH4UPhHuefqTF+23dsqVGBA08deiQ/iFOji9nmRn/X+Rg+j85Pm7i9+/fUZLGh/fvpc/72txfrKe4F+h1FpwGfvnyhWmlqsrJ82yM/68Cw2qFvualp0+fimBzxZP7963umih96y0pDvj37x92A1fPmuVwTUnm3w0h9v/XJLn/7N261QNXwIPwhW1b6hYoiB9+9OgRC9Zk8/ryJUt+EwNGPiVphn8Swj8NLS3P4ysV9Dy8urQ8fXk2rlihgbX4+svJ+Y7PxJCB31if4ZucwntWVtYf+AxkZGT8odLUnvvzxQtVkLfh4rAC9sSxY8I/N606psPFrLSHT7opNK+glYmJiVDxxfDjxw8WDg6OP1gT9t27d/nPnDql9fPnTzZ84YcPw11ILQAANFSl+WXVtCYAAAAASUVORK5CYII=' /></a>" : "") + "</div>" + "<div><span>Notes: </span><span class='dsf dsf_motivation_notes_" + id + "'></span></div>" + "</li>" ); motivations.push(id); } } if (key.substring(0, 5).toLowerCase() === "oblig") { //var id = key.substring(key.lastIndexOf("_") + 1); if (obligations.indexOf(id) === -1) { $(".obligations_container .obligation_list ul").append( "<li>" + "<div><span>Type: </span><span class='dsf dsf_obligation_type_" + id + "'></span>" + (options.isEditable ? "<a href='javascript:void(0);' title='Delete Obligation'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAB3RJTUUH3wgeATEhJPwS7AAAAAlwSFlzAAAK8AAACvABQqw0mAAAAx9JREFUeNpj/P//PwM1ARNVTQMCFhjj9o0bem9vXCtiY2JiE9c3nCctL78PKPyPkP6P7965PDh71vvSmdP3fDIyJzGCvHzx7FlNpc/vznJ//8L5/+Uzhr8vnv4/zyOyUSchLZubh+cZNp+9fvo05M3mzY0Pz51h2/PtR3tITs5KMzOzz2AD7965w3Ng5vTJ4SrSMRyf3rD8f3Kf4f/jOwz3/nE8Zm2fFaasqXkCZtKvnz9Vr86aNZ197x77xZ8+z7QuLGx1dXN7zs7ODlEAMhCEv379yrRiwQLjFeH+Wz77m/79ZCb9/6Uq7/+rWtIfzxw86AFUw3T7zOn089aWn3crKbwtT0iIef78OStMPwwzoAt8+vSJeVF/r/duDZlr98XZ/98UYPl/Ulzo857cnB1nuTn/LefleTChrc3u27dvjOh6sRoIw48fP+abGR3ZfZqL5dc5Fsb/pxkZ/i/i472zfPFivd+/f+PUhzPZyMjIfLIvKdv5lUfg258/IMUMDGKMDAKqqqo/WVhYGHACXDad2LIl6jg/3/dTQCWLRIRvrVFTuXaFm/n/cl31Ey9fvuTCpQ+r4N6FC1NPsLH9ARm2jo/32Y4tWwxePH8uttnD8ehzec7/U2IjWv/8+UNcGO5esiTsBAvLnzNMDP+PsjP/XDxlSghM88ePH4UPhHuefqTF+23dsqVGBA08deiQ/iFOji9nmRn/X+Rg+j85Pm7i9+/fUZLGh/fvpc/72txfrKe4F+h1FpwGfvnyhWmlqsrJ82yM/68Cw2qFvualp0+fimBzxZP7963umih96y0pDvj37x92A1fPmuVwTUnm3w0h9v/XJLn/7N261QNXwIPwhW1b6hYoiB9+9OgRC9Zk8/ryJUt+EwNGPiVphn8Swj8NLS3P4ysV9Dy8urQ8fXk2rlihgbX4+svJ+Y7PxJCB31if4ZucwntWVtYf+AxkZGT8odLUnvvzxQtVkLfh4rAC9sSxY8I/N606psPFrLSHT7opNK+glYmJiVDxxfDjxw8WDg6OP1gT9t27d/nPnDql9fPnTzZ84YcPw11ILQAANFSl+WXVtCYAAAAASUVORK5CYII=' /></a>" : "") + "</div>" + "<div><span>Magnitude: </span><span class='dsf dsf_obligation_magnitude_" + id + "'></span></div>" + "<div><span>Notes: </span><span class='dsf dsf_obligation_notes_" + id + "'></span></div>" + "</li>" ); obligations.push(id); } } if (key.substring(0, 5).toLowerCase() === "criti") { //var id = key.substring(key.lastIndexOf("_") + 1); if (criticals.indexOf(id) === -1) { $(".critical_injuries_container .critical_injury_list ul").append( "<li>" + "<div><span>Severity: </span><span class='dsf dsf_critical_injury_severity_" + id + "'></span>" + (options.isEditable ? "<a href='javascript:void(0);' title='Delete Obligation'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAB3RJTUUH3wgeATEhJPwS7AAAAAlwSFlzAAAK8AAACvABQqw0mAAAAx9JREFUeNpj/P//PwM1ARNVTQMCFhjj9o0bem9vXCtiY2JiE9c3nCctL78PKPyPkP6P7965PDh71vvSmdP3fDIyJzGCvHzx7FlNpc/vznJ//8L5/+Uzhr8vnv4/zyOyUSchLZubh+cZNp+9fvo05M3mzY0Pz51h2/PtR3tITs5KMzOzz2AD7965w3Ng5vTJ4SrSMRyf3rD8f3Kf4f/jOwz3/nE8Zm2fFaasqXkCZtKvnz9Vr86aNZ197x77xZ8+z7QuLGx1dXN7zs7ODlEAMhCEv379yrRiwQLjFeH+Wz77m/79ZCb9/6Uq7/+rWtIfzxw86AFUw3T7zOn089aWn3crKbwtT0iIef78OStMPwwzoAt8+vSJeVF/r/duDZlr98XZ/98UYPl/Ulzo857cnB1nuTn/LefleTChrc3u27dvjOh6sRoIw48fP+abGR3ZfZqL5dc5Fsb/pxkZ/i/i472zfPFivd+/f+PUhzPZyMjIfLIvKdv5lUfg258/IMUMDGKMDAKqqqo/WVhYGHACXDad2LIl6jg/3/dTQCWLRIRvrVFTuXaFm/n/cl31Ey9fvuTCpQ+r4N6FC1NPsLH9ARm2jo/32Y4tWwxePH8uttnD8ehzec7/U2IjWv/8+UNcGO5esiTsBAvLnzNMDP+PsjP/XDxlSghM88ePH4UPhHuefqTF+23dsqVGBA08deiQ/iFOji9nmRn/X+Rg+j85Pm7i9+/fUZLGh/fvpc/72txfrKe4F+h1FpwGfvnyhWmlqsrJ82yM/68Cw2qFvualp0+fimBzxZP7963umih96y0pDvj37x92A1fPmuVwTUnm3w0h9v/XJLn/7N261QNXwIPwhW1b6hYoiB9+9OgRC9Zk8/ryJUt+EwNGPiVphn8Swj8NLS3P4ysV9Dy8urQ8fXk2rlihgbX4+svJ+Y7PxJCB31if4ZucwntWVtYf+AxkZGT8odLUnvvzxQtVkLfh4rAC9sSxY8I/N606psPFrLSHT7opNK+glYmJiVDxxfDjxw8WDg6OP1gT9t27d/nPnDql9fPnTzZ84YcPw11ILQAANFSl+WXVtCYAAAAASUVORK5CYII=' /></a>" : "") + "</div>" + "<div><span>Notes: </span><span class='dsf dsf_critical_injury_result_" + id + "'></span></div>" + "</li>" ); criticals.push(id); } } if (key.substring(0, 5).toLowerCase() === "talen") { // var id = key.substring(key.lastIndexOf("_") + 1); if (talents.indexOf(id) === -1) { $(".talents_container table.talent tbody").append( "<tr>" + "<td>" + (options.isEditable ? "<a href='javascript:void(0);' title='Delete Talent or Ability'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAB3RJTUUH3wgeATEhJPwS7AAAAAlwSFlzAAAK8AAACvABQqw0mAAAAx9JREFUeNpj/P//PwM1ARNVTQMCFhjj9o0bem9vXCtiY2JiE9c3nCctL78PKPyPkP6P7965PDh71vvSmdP3fDIyJzGCvHzx7FlNpc/vznJ//8L5/+Uzhr8vnv4/zyOyUSchLZubh+cZNp+9fvo05M3mzY0Pz51h2/PtR3tITs5KMzOzz2AD7965w3Ng5vTJ4SrSMRyf3rD8f3Kf4f/jOwz3/nE8Zm2fFaasqXkCZtKvnz9Vr86aNZ197x77xZ8+z7QuLGx1dXN7zs7ODlEAMhCEv379yrRiwQLjFeH+Wz77m/79ZCb9/6Uq7/+rWtIfzxw86AFUw3T7zOn089aWn3crKbwtT0iIef78OStMPwwzoAt8+vSJeVF/r/duDZlr98XZ/98UYPl/Ulzo857cnB1nuTn/LefleTChrc3u27dvjOh6sRoIw48fP+abGR3ZfZqL5dc5Fsb/pxkZ/i/i472zfPFivd+/f+PUhzPZyMjIfLIvKdv5lUfg258/IMUMDGKMDAKqqqo/WVhYGHACXDad2LIl6jg/3/dTQCWLRIRvrVFTuXaFm/n/cl31Ey9fvuTCpQ+r4N6FC1NPsLH9ARm2jo/32Y4tWwxePH8uttnD8ehzec7/U2IjWv/8+UNcGO5esiTsBAvLnzNMDP+PsjP/XDxlSghM88ePH4UPhHuefqTF+23dsqVGBA08deiQ/iFOji9nmRn/X+Rg+j85Pm7i9+/fUZLGh/fvpc/72txfrKe4F+h1FpwGfvnyhWmlqsrJ82yM/68Cw2qFvualp0+fimBzxZP7963umih96y0pDvj37x92A1fPmuVwTUnm3w0h9v/XJLn/7N261QNXwIPwhW1b6hYoiB9+9OgRC9Zk8/ryJUt+EwNGPiVphn8Swj8NLS3P4ysV9Dy8urQ8fXk2rlihgbX4+svJ+Y7PxJCB31if4ZucwntWVtYf+AxkZGT8odLUnvvzxQtVkLfh4rAC9sSxY8I/N606psPFrLSHT7opNK+glYmJiVDxxfDjxw8WDg6OP1gT9t27d/nPnDql9fPnTzZ84YcPw11ILQAANFSl+WXVtCYAAAAASUVORK5CYII=' /></a>" : "") + "</td>" + "<td>" + "<span class='dsf dsf_talent_name_" + id + "'></span></td>" + "<td>" + "<span class='dsf dsf_talent_page_" + id + "'></span></td>" + "<td>" + "<span class='dsf dsf_talent_summary_" + id + "'></span></td></tr>" ); talents.push(id); } } }); for (i = 0; i < skills.Skills.ComSkill.length; i++) { $(".skills .table.comskill").append( "<div class='tr' key='" + skills.Skills.ComSkill[i].Key + "' stat='" + skills.Skills.ComSkill[i].CharKey + "'>" + "<div class='td'>" + skills.Skills.ComSkill[i].Name + "</div>" + /**"<div class='ffsw_aor_td'>" + ffsw_aor_skills.Skills.Skill[i].Type + "</div>" +**/ "<div class='td'><span class='dsf dsf_skills_" + skills.Skills.ComSkill[i].Key + "_career checkbox'></span></div>" + "<div class='td'><span class='dsf dsf_skills_" + skills.Skills.ComSkill[i].Key + "_rank'>0</span></div>" + "<div class='td'><span class='dsf dsf_dicepool_" + skills.Skills.ComSkill[i].Key + " readonly dice_pool_" + skills.Skills.ComSkill[i].Key + "'></span></div>" + "</div>" ); } for (i = 0; i < skills.Skills.GenSkill.length; i++) { $(".skills .table.genskill").append( "<div class='tr' key='" + skills.Skills.GenSkill[i].Key + "' stat='" + skills.Skills.GenSkill[i].CharKey + "'>" + "<div class='td'>" + skills.Skills.GenSkill[i].Name + "</div>" + /**"<div class='ffsw_aor_td'>" + ffsw_aor_skills.Skills.Skill[i].Type + "</div>" +**/ "<div class='td'><span class='dsf dsf_skills_" + skills.Skills.GenSkill[i].Key + "_career checkbox'></span></div>" + "<div class='td'><span class='dsf dsf_skills_" + skills.Skills.GenSkill[i].Key + "_rank'>0</span></div>" + "<div class='td'><span class='dsf dsf_dicepool_" + skills.Skills.GenSkill[i].Key + " readonly dice_pool_" + skills.Skills.GenSkill[i].Key + "'></span></div>" + "</div>" ); } for (i = 0; i < skills.Skills.KnoSkill.length; i++) { $(".skills .table.knoskill").append( "<div class='tr' key='" + skills.Skills.KnoSkill[i].Key + "' stat='" + skills.Skills.KnoSkill[i].CharKey + "'>" + "<div class='td'>" + skills.Skills.KnoSkill[i].Name + "</div>" + /**"<div class='ffsw_aor_td'>" + ffsw_aor_skills.Skills.Skill[i].Type + "</div>" +**/ "<div class='td'><span class='dsf dsf_skills_" + skills.Skills.KnoSkill[i].Key + "_career checkbox'></span></div>" + "<div class='td'><span class='dsf dsf_skills_" + skills.Skills.KnoSkill[i].Key + "_rank'>0</span></div>" + "<div class='td'><span class='dsf dsf_dicepool_" + skills.Skills.KnoSkill[i].Key + " readonly dice_pool_" + skills.Skills.KnoSkill[i].Key + "'></span></div>" + "</div>" ); } if (options.isEditable) { //add new weapon $(".weapon th a").click(function () { var id = $(".weapon tr").length; $(".weapons table.weapon tbody").append( "<tr>" + "<td>" + (options.isEditable ? "<a href='javascript:void(0);' title='Delete Weapon'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAB3RJTUUH3wgeATEhJPwS7AAAAAlwSFlzAAAK8AAACvABQqw0mAAAAx9JREFUeNpj/P//PwM1ARNVTQMCFhjj9o0bem9vXCtiY2JiE9c3nCctL78PKPyPkP6P7965PDh71vvSmdP3fDIyJzGCvHzx7FlNpc/vznJ//8L5/+Uzhr8vnv4/zyOyUSchLZubh+cZNp+9fvo05M3mzY0Pz51h2/PtR3tITs5KMzOzz2AD7965w3Ng5vTJ4SrSMRyf3rD8f3Kf4f/jOwz3/nE8Zm2fFaasqXkCZtKvnz9Vr86aNZ197x77xZ8+z7QuLGx1dXN7zs7ODlEAMhCEv379yrRiwQLjFeH+Wz77m/79ZCb9/6Uq7/+rWtIfzxw86AFUw3T7zOn089aWn3crKbwtT0iIef78OStMPwwzoAt8+vSJeVF/r/duDZlr98XZ/98UYPl/Ulzo857cnB1nuTn/LefleTChrc3u27dvjOh6sRoIw48fP+abGR3ZfZqL5dc5Fsb/pxkZ/i/i472zfPFivd+/f+PUhzPZyMjIfLIvKdv5lUfg258/IMUMDGKMDAKqqqo/WVhYGHACXDad2LIl6jg/3/dTQCWLRIRvrVFTuXaFm/n/cl31Ey9fvuTCpQ+r4N6FC1NPsLH9ARm2jo/32Y4tWwxePH8uttnD8ehzec7/U2IjWv/8+UNcGO5esiTsBAvLnzNMDP+PsjP/XDxlSghM88ePH4UPhHuefqTF+23dsqVGBA08deiQ/iFOji9nmRn/X+Rg+j85Pm7i9+/fUZLGh/fvpc/72txfrKe4F+h1FpwGfvnyhWmlqsrJ82yM/68Cw2qFvualp0+fimBzxZP7963umih96y0pDvj37x92A1fPmuVwTUnm3w0h9v/XJLn/7N261QNXwIPwhW1b6hYoiB9+9OgRC9Zk8/ryJUt+EwNGPiVphn8Swj8NLS3P4ysV9Dy8urQ8fXk2rlihgbX4+svJ+Y7PxJCB31if4ZucwntWVtYf+AxkZGT8odLUnvvzxQtVkLfh4rAC9sSxY8I/N606psPFrLSHT7opNK+glYmJiVDxxfDjxw8WDg6OP1gT9t27d/nPnDql9fPnTzZ84YcPw11ILQAANFSl+WXVtCYAAAAASUVORK5CYII=' /></a>" : "") + "</td>" + "<td>" + "<span class='dsf dsf_weapon_name_" + id + "'>" + "</td>" + "<td>" + "<span class='dsf dsf_weapon_skill_" + id + "'>" + "</td>" + "<td>" + "<span class='dsf dsf_weapon_damage_" + id + "'>" + "</td>" + "<td>" + "<span class='dsf dsf_weapon_range_" + id + "'>" + "</td>" + "<td>" + "<span class='dsf dsf_weapon_crit_" + id + "'>" + "</td>" + "<td>" + "<span class='dsf dsf_weapon_special_" + id + "'>" + "</td>" + "</tr>"); $(".dsf_weapon_name_" + id).parents("tr").find("a").click(function () { ffsw_aor_removeTableListItem(this, options.containerId); }); aisleten.characters.bindAllFields("ffsw_aor", options.containerId); }); //remove weapon $(".weapon td a").click(function () { ffsw_aor_removeTableListItem(this, options.containerId); }); //add motivation $(".motivations .type .text a").click(function () { var id = $(".motivations_container .motivation_list ul li").length; $(".motivations_container .motivation_list ul").append( "<li>" + "<div><span>Type: </span><span class='dsf dsf_motivation_type_" + (id + 1) + "'></span>" + (options.isEditable ? "<a href='javascript:void(0);' title='Delete Motivation'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAB3RJTUUH3wgeATEhJPwS7AAAAAlwSFlzAAAK8AAACvABQqw0mAAAAx9JREFUeNpj/P//PwM1ARNVTQMCFhjj9o0bem9vXCtiY2JiE9c3nCctL78PKPyPkP6P7965PDh71vvSmdP3fDIyJzGCvHzx7FlNpc/vznJ//8L5/+Uzhr8vnv4/zyOyUSchLZubh+cZNp+9fvo05M3mzY0Pz51h2/PtR3tITs5KMzOzz2AD7965w3Ng5vTJ4SrSMRyf3rD8f3Kf4f/jOwz3/nE8Zm2fFaasqXkCZtKvnz9Vr86aNZ197x77xZ8+z7QuLGx1dXN7zs7ODlEAMhCEv379yrRiwQLjFeH+Wz77m/79ZCb9/6Uq7/+rWtIfzxw86AFUw3T7zOn089aWn3crKbwtT0iIef78OStMPwwzoAt8+vSJeVF/r/duDZlr98XZ/98UYPl/Ulzo857cnB1nuTn/LefleTChrc3u27dvjOh6sRoIw48fP+abGR3ZfZqL5dc5Fsb/pxkZ/i/i472zfPFivd+/f+PUhzPZyMjIfLIvKdv5lUfg258/IMUMDGKMDAKqqqo/WVhYGHACXDad2LIl6jg/3/dTQCWLRIRvrVFTuXaFm/n/cl31Ey9fvuTCpQ+r4N6FC1NPsLH9ARm2jo/32Y4tWwxePH8uttnD8ehzec7/U2IjWv/8+UNcGO5esiTsBAvLnzNMDP+PsjP/XDxlSghM88ePH4UPhHuefqTF+23dsqVGBA08deiQ/iFOji9nmRn/X+Rg+j85Pm7i9+/fUZLGh/fvpc/72txfrKe4F+h1FpwGfvnyhWmlqsrJ82yM/68Cw2qFvualp0+fimBzxZP7963umih96y0pDvj37x92A1fPmuVwTUnm3w0h9v/XJLn/7N261QNXwIPwhW1b6hYoiB9+9OgRC9Zk8/ryJUt+EwNGPiVphn8Swj8NLS3P4ysV9Dy8urQ8fXk2rlihgbX4+svJ+Y7PxJCB31if4ZucwntWVtYf+AxkZGT8odLUnvvzxQtVkLfh4rAC9sSxY8I/N606psPFrLSHT7opNK+glYmJiVDxxfDjxw8WDg6OP1gT9t27d/nPnDql9fPnTzZ84YcPw11ILQAANFSl+WXVtCYAAAAASUVORK5CYII=' /></a>" : "") + "</div>" + "<div><span>Notes: </span><span class='dsf dsf_motivation_notes_" + (id + 1) + "'></span></div>" + "</li>"); $(".dsf_motivation_type_" + (id + 1)).parent().find("a").click(function () { ffsw_aor_removeListItem(this, options.containerId); }); aisleten.characters.bindAllFields("ffsw_aor", options.containerId); }); //remove motivation $(".motivations .motivation_list li div:first-child a").click(function () { ffsw_aor_removeListItem(this, options.containerId); }); //add obligation $(".obligations .type .text a").click(function () { var id = $(".obligations_container .obligation_list ul li").length; $(".obligations_container .obligation_list ul").append( "<li>" + "<div><span>Type: </span><span class='dsf dsf_obligation_type_" + (id + 1) + "'></span>" + (options.isEditable ? "<a href='javascript:void(0);' title='Delete Obligation'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAB3RJTUUH3wgeATEhJPwS7AAAAAlwSFlzAAAK8AAACvABQqw0mAAAAx9JREFUeNpj/P//PwM1ARNVTQMCFhjj9o0bem9vXCtiY2JiE9c3nCctL78PKPyPkP6P7965PDh71vvSmdP3fDIyJzGCvHzx7FlNpc/vznJ//8L5/+Uzhr8vnv4/zyOyUSchLZubh+cZNp+9fvo05M3mzY0Pz51h2/PtR3tITs5KMzOzz2AD7965w3Ng5vTJ4SrSMRyf3rD8f3Kf4f/jOwz3/nE8Zm2fFaasqXkCZtKvnz9Vr86aNZ197x77xZ8+z7QuLGx1dXN7zs7ODlEAMhCEv379yrRiwQLjFeH+Wz77m/79ZCb9/6Uq7/+rWtIfzxw86AFUw3T7zOn089aWn3crKbwtT0iIef78OStMPwwzoAt8+vSJeVF/r/duDZlr98XZ/98UYPl/Ulzo857cnB1nuTn/LefleTChrc3u27dvjOh6sRoIw48fP+abGR3ZfZqL5dc5Fsb/pxkZ/i/i472zfPFivd+/f+PUhzPZyMjIfLIvKdv5lUfg258/IMUMDGKMDAKqqqo/WVhYGHACXDad2LIl6jg/3/dTQCWLRIRvrVFTuXaFm/n/cl31Ey9fvuTCpQ+r4N6FC1NPsLH9ARm2jo/32Y4tWwxePH8uttnD8ehzec7/U2IjWv/8+UNcGO5esiTsBAvLnzNMDP+PsjP/XDxlSghM88ePH4UPhHuefqTF+23dsqVGBA08deiQ/iFOji9nmRn/X+Rg+j85Pm7i9+/fUZLGh/fvpc/72txfrKe4F+h1FpwGfvnyhWmlqsrJ82yM/68Cw2qFvualp0+fimBzxZP7963umih96y0pDvj37x92A1fPmuVwTUnm3w0h9v/XJLn/7N261QNXwIPwhW1b6hYoiB9+9OgRC9Zk8/ryJUt+EwNGPiVphn8Swj8NLS3P4ysV9Dy8urQ8fXk2rlihgbX4+svJ+Y7PxJCB31if4ZucwntWVtYf+AxkZGT8odLUnvvzxQtVkLfh4rAC9sSxY8I/N606psPFrLSHT7opNK+glYmJiVDxxfDjxw8WDg6OP1gT9t27d/nPnDql9fPnTzZ84YcPw11ILQAANFSl+WXVtCYAAAAASUVORK5CYII=' /></a>" : "") + "</div>" + "<div><span>Magnitude: </span><span class='dsf dsf_obligation_magnitude_" + (id + 1) + "'></span></div>" + "<div><span>Notes: </span><span class='dsf dsf_obligation_notes_" + (id + 1) + "'></span></div>" + "</li>"); $(".dsf_obligation_type_" + (id + 1)).parent().find("a").click(function () { ffsw_aor_removeListItem(this, options.containerId); }); aisleten.characters.bindAllFields("ffsw_aor", options.containerId); }); //remove obligation $(".obligations .obligation_list li div:first-child a").click(function () { ffsw_aor_removeListItem(this, options.containerId); }); //add criticals $(".critical_injuries .type .text a").click(function () { var id = $(".critical_injuries_container .critical_injury_list ul li").length; $(".critical_injuries_container .critical_injury_list ul").append( "<li>" + "<div><span>Severity: </span><span class='dsf dsf_critical_injury_severity_" + (id + 1) + "'></span>" + (options.isEditable ? "<a href='javascript:void(0);' title='Delete Obligation'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAB3RJTUUH3wgeATEhJPwS7AAAAAlwSFlzAAAK8AAACvABQqw0mAAAAx9JREFUeNpj/P//PwM1ARNVTQMCFhjj9o0bem9vXCtiY2JiE9c3nCctL78PKPyPkP6P7965PDh71vvSmdP3fDIyJzGCvHzx7FlNpc/vznJ//8L5/+Uzhr8vnv4/zyOyUSchLZubh+cZNp+9fvo05M3mzY0Pz51h2/PtR3tITs5KMzOzz2AD7965w3Ng5vTJ4SrSMRyf3rD8f3Kf4f/jOwz3/nE8Zm2fFaasqXkCZtKvnz9Vr86aNZ197x77xZ8+z7QuLGx1dXN7zs7ODlEAMhCEv379yrRiwQLjFeH+Wz77m/79ZCb9/6Uq7/+rWtIfzxw86AFUw3T7zOn089aWn3crKbwtT0iIef78OStMPwwzoAt8+vSJeVF/r/duDZlr98XZ/98UYPl/Ulzo857cnB1nuTn/LefleTChrc3u27dvjOh6sRoIw48fP+abGR3ZfZqL5dc5Fsb/pxkZ/i/i472zfPFivd+/f+PUhzPZyMjIfLIvKdv5lUfg258/IMUMDGKMDAKqqqo/WVhYGHACXDad2LIl6jg/3/dTQCWLRIRvrVFTuXaFm/n/cl31Ey9fvuTCpQ+r4N6FC1NPsLH9ARm2jo/32Y4tWwxePH8uttnD8ehzec7/U2IjWv/8+UNcGO5esiTsBAvLnzNMDP+PsjP/XDxlSghM88ePH4UPhHuefqTF+23dsqVGBA08deiQ/iFOji9nmRn/X+Rg+j85Pm7i9+/fUZLGh/fvpc/72txfrKe4F+h1FpwGfvnyhWmlqsrJ82yM/68Cw2qFvualp0+fimBzxZP7963umih96y0pDvj37x92A1fPmuVwTUnm3w0h9v/XJLn/7N261QNXwIPwhW1b6hYoiB9+9OgRC9Zk8/ryJUt+EwNGPiVphn8Swj8NLS3P4ysV9Dy8urQ8fXk2rlihgbX4+svJ+Y7PxJCB31if4ZucwntWVtYf+AxkZGT8odLUnvvzxQtVkLfh4rAC9sSxY8I/N606psPFrLSHT7opNK+glYmJiVDxxfDjxw8WDg6OP1gT9t27d/nPnDql9fPnTzZ84YcPw11ILQAANFSl+WXVtCYAAAAASUVORK5CYII=' /></a>" : "") + "</div>" + "<div><span>Notes: </span><span class='dsf dsf_critical_injury_result_" + (id + 1) + "'></span></div>" + "</li>" ); $(".dsf_critical_injury_severity_" + (id + 1)).parent().find("a").click(function () { ffsw_aor_removeListItem(this, options.containerId); }); aisleten.characters.bindAllFields("ffsw_aor", options.containerId); }); //remove criticals $(".critical_injuries .critical_injury_list li div:first-child a").click(function () { ffsw_aor_removeListItem(this, options.containerId); }); //add talents $(".talents .type .text a").click(function () { //var id = $(".ffsw_aor_talents_container .ffsw_aor_talent_list ul li").length; var id = $(".talents_container table.talent tbody tr").length; $(".talents_container table.talent tbody").append( "<tr>" + "<td>" + (options.isEditable ? "<a href='javascript:void(0);' title='Delete Talent or Ability'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAB3RJTUUH3wgeATEhJPwS7AAAAAlwSFlzAAAK8AAACvABQqw0mAAAAx9JREFUeNpj/P//PwM1ARNVTQMCFhjj9o0bem9vXCtiY2JiE9c3nCctL78PKPyPkP6P7965PDh71vvSmdP3fDIyJzGCvHzx7FlNpc/vznJ//8L5/+Uzhr8vnv4/zyOyUSchLZubh+cZNp+9fvo05M3mzY0Pz51h2/PtR3tITs5KMzOzz2AD7965w3Ng5vTJ4SrSMRyf3rD8f3Kf4f/jOwz3/nE8Zm2fFaasqXkCZtKvnz9Vr86aNZ197x77xZ8+z7QuLGx1dXN7zs7ODlEAMhCEv379yrRiwQLjFeH+Wz77m/79ZCb9/6Uq7/+rWtIfzxw86AFUw3T7zOn089aWn3crKbwtT0iIef78OStMPwwzoAt8+vSJeVF/r/duDZlr98XZ/98UYPl/Ulzo857cnB1nuTn/LefleTChrc3u27dvjOh6sRoIw48fP+abGR3ZfZqL5dc5Fsb/pxkZ/i/i472zfPFivd+/f+PUhzPZyMjIfLIvKdv5lUfg258/IMUMDGKMDAKqqqo/WVhYGHACXDad2LIl6jg/3/dTQCWLRIRvrVFTuXaFm/n/cl31Ey9fvuTCpQ+r4N6FC1NPsLH9ARm2jo/32Y4tWwxePH8uttnD8ehzec7/U2IjWv/8+UNcGO5esiTsBAvLnzNMDP+PsjP/XDxlSghM88ePH4UPhHuefqTF+23dsqVGBA08deiQ/iFOji9nmRn/X+Rg+j85Pm7i9+/fUZLGh/fvpc/72txfrKe4F+h1FpwGfvnyhWmlqsrJ82yM/68Cw2qFvualp0+fimBzxZP7963umih96y0pDvj37x92A1fPmuVwTUnm3w0h9v/XJLn/7N261QNXwIPwhW1b6hYoiB9+9OgRC9Zk8/ryJUt+EwNGPiVphn8Swj8NLS3P4ysV9Dy8urQ8fXk2rlihgbX4+svJ+Y7PxJCB31if4ZucwntWVtYf+AxkZGT8odLUnvvzxQtVkLfh4rAC9sSxY8I/N606psPFrLSHT7opNK+glYmJiVDxxfDjxw8WDg6OP1gT9t27d/nPnDql9fPnTzZ84YcPw11ILQAANFSl+WXVtCYAAAAASUVORK5CYII=' /></a>" : "") + "</td>" + "<td>" + "<span class='dsf dsf_talent_name_" + (id + 1) + "'></span></td>" + "<td>" + "<span class='dsf dsf_talent_page_" + (id + 1) + "'></span></td>" + "<td>" + "<span class='dsf dsf_talent_summary_" + (id + 1) + "'></span></td>" + "</tr>"); $(".dsf_talent_name_" + (id + 1)).parents("tr").find("a").click(function () { ffsw_aor_removeTableListItem(this, options.containerId); }); aisleten.characters.bindAllFields("ffsw_aor", options.containerId); }); //remove talents $(".talents table.talent tbody tr td:first-child a").click(function () { ffsw_aor_removeTableListItem(this, options.containerId); }); } } // Data Change function ffsw_aor_dataChange(options) { var i, key, stat_key, rank_raw, rank, stat_raw, stat, green, yellow, skill_key; // Called immediately after a data value is changed. //alert("dataChange. " + options['fieldName'] + " = " + options['fieldValue']); // Here, we use it to help with calculating the ability modifiers if the level or // base ability score changes. var field = options['fieldName']; var val = options['fieldValue']; switch (field.substring(0,5).toLowerCase()) { case "skill": //calculate dice pool if (field.substring(field.lastIndexOf("_") + 1).toLowerCase() == "rank") { key = $(".dsf_" + field).parents(".tr").attr("key"); stat_key = $(".dsf_" + field).parents(".tr").attr("stat"); rank_raw = $(".dsf_skills_" + key + "_rank").text(); rank = isNaN(rank_raw) | rank_raw == "" ? 0 : parseInt(rank_raw, 10); stat_raw = $("[key='" + stat_key + "'] .dsf").text(); stat = isNaN(stat_raw) | stat_raw == "" ? 0 : parseInt(stat_raw, 10); //alert("key " + key +"stat_key " + stat_key + " rank " + rank_raw); green = stat > rank ? stat - rank : rank - stat; yellow = stat > rank ? rank : stat; $(".dice_pool_" + key).html(""); for (i = 0; i < green; i++) { $(".dice_pool_" + key).append('<li class="green"></li>'); } for (i = 0; i < yellow; i++) { $(".dice_pool_" + key).append('<li class="yellow"></li>'); } } break; default: //Check for stat change to calculate dice pools if ($(".dsf_" + field).parents(".stat_block").length > 0) { stat_key = $(".dsf_" + field).parents(".stat_block").attr("key"); $(".skilltable .tr[stat='" + stat_key + "']").each(function () { skill_key = $(this).attr("key"); //alert("dataChange. " + $(this).attr("ffsw_aor_key")); rank_raw = $(".dsf_skills_" + skill_key + "_rank").text(); rank = isNaN(rank_raw) ? 0 : parseInt(rank_raw, 10); stat_raw = val; stat = isNaN(stat_raw) ? 0 : parseInt(stat_raw, 10); green = stat > rank ? stat - rank : rank - stat; yellow = stat > rank ? rank : stat; $(".dice_pool_" + skill_key).html(""); for (i = 0; i < green; i++) { $(".dice_pool_" + skill_key).append('<li class="green"></li>'); } for (i = 0; i < yellow; i++) { $(".dice_pool_" + skill_key).append('<li class="yellow"></li>'); } }); } break; } } // remove li-based items function ffsw_aor_removeListItem(i, containerId) { var ul = $(i).parents("ul"); //remove row $(i).parents("li").remove(); //renumber controls $(ul).find("li").each(function (index) { $(this).find(".dsf").each(function () { var css = $(this).attr("class"); $(this).attr("class", css.substring(0, css.lastIndexOf("_") + 1) + (index + 1)); }); }); } // remove table row-based itens function ffsw_aor_removeTableListItem(i, containerId) { var table = $(i).parents("table"); //remove row $(i).parents("tr").remove(); //renumber controls $(table).find("tbody tr").each(function (index) { //get original index $(this).find("td .dsf").each(function () { var css = $(this).attr("class"); $(this).attr("class", css.substring(0, css.lastIndexOf("_") + 1) + (index + 1)); }); }); } // Process import select function ffsw_aor_processimport(e) { var file = e.target.result, results; if (file && file.length) { results = ffsw_aor_x2js.xml_str2json(file); ffsw_aor_parseinput(results); } } // Process data from import file function ffsw_aor_parseinput(e) { var i; $(".dsf_species").text(e.Character.Species.SpeciesKey); $(".dsf_career").text(e.Character.Career.CareerKey); //$(".dsf_specializations").text(e.Character.Career.StartingSpecKey); $(".dsf_soak_w").text(ffsw_aor_calculateValueFromObject(e.Character.Attributes.SoakValue)); $(".dsf_wound").text(ffsw_aor_calculateValueFromObject(e.Character.Attributes.WoundThreshold)); $(".dsf_strain").text(ffsw_aor_calculateValueFromObject(e.Character.Attributes.StrainThreshold)); $(".dsf_ranged_def").text(ffsw_aor_calculateValueFromObject(e.Character.Attributes.DefenseRanged)); $(".dsf_melee_def").text(ffsw_aor_calculateValueFromObject(e.Character.Attributes.DefenseMelee)); $(".dsf_brawn").text(ffsw_aor_calculateValueFromObject(e.Character.Characteristics.CharCharacteristic[0].Rank)); $(".dsf_aglity").text(ffsw_aor_calculateValueFromObject(e.Character.Characteristics.CharCharacteristic[1].Rank)); $(".dsf_intellect").text(ffsw_aor_calculateValueFromObject(e.Character.Characteristics.CharCharacteristic[2].Rank)); $(".dsf_cunning").text(ffsw_aor_calculateValueFromObject(e.Character.Characteristics.CharCharacteristic[3].Rank)); $(".dsf_willpower").text(ffsw_aor_calculateValueFromObject(e.Character.Characteristics.CharCharacteristic[4].Rank)); $(".dsf_presence").text(ffsw_aor_calculateValueFromObject(e.Character.Characteristics.CharCharacteristic[5].Rank)); $.each(e.Character.Skills.CharSkill, function (index, skill) { $(".dsf_skills_" + skill.Key + "_career :checkbox").val(skill.isCareer == "true" ? 1 : 0); $(".dsf_skills_" + skill.Key + "_career :checkbox").prop("checked", skill.isCareer == "true" ? true : false); $(".dsf_skills_" + skill.Key + "_rank").text(ffsw_aor_calculateValueFromObject(skill.Rank)); }); $(".weapons table.weapon tbody").html(""); $.each(e.Character.Weapons.CharWeapon, function (index, weapon) { var item = $.grep(ffsw_aor_weapons.Weapons.Weapon, function (obj) { return obj.Key == weapon.ItemKey; }); var skill = $.grep(skills.Skills.Skill, function (obj) { if (item.length > 0) { return obj.Key == item[0].SkillKey; } }); var qualities = []; if (typeof item[0] != "undefined") { if (typeof item[0].Qualities != "undefined") { $.each(item[0].Qualities.Quality, function (index, quality) { var descriptor = $.grep(ffsw_aor_descriptors.ItemDescriptors.ItemDescriptor, function (obj) { if (typeof quality.Key != "undefined") { return obj.Key == quality.Key; } else if (typeof quality != "undefined") { return obj.Key == quality; } }); if (typeof descriptor != "undefined" && descriptor.length > 0) { if (descriptor[0].QualDesc.indexOf("{0}") > -1) { qualities.push(descriptor[0].QualDesc.replace("{0}", quality.Count)); } else { qualities.push(descriptor[0].QualDesc); } } }); } } var id = $(".ffsw_aor_weapon tr").length; if (item.length > 0) { $(".ffsw_aor_weapons table.ffsw_aor_weapon tbody").append( "<tr>" + "<td>" + "<a href='javascript:void(0);' title='Delete Weapon'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAB3RJTUUH3wgeATEhJPwS7AAAAAlwSFlzAAAK8AAACvABQqw0mAAAAx9JREFUeNpj/P//PwM1ARNVTQMCFhjj9o0bem9vXCtiY2JiE9c3nCctL78PKPyPkP6P7965PDh71vvSmdP3fDIyJzGCvHzx7FlNpc/vznJ//8L5/+Uzhr8vnv4/zyOyUSchLZubh+cZNp+9fvo05M3mzY0Pz51h2/PtR3tITs5KMzOzz2AD7965w3Ng5vTJ4SrSMRyf3rD8f3Kf4f/jOwz3/nE8Zm2fFaasqXkCZtKvnz9Vr86aNZ197x77xZ8+z7QuLGx1dXN7zs7ODlEAMhCEv379yrRiwQLjFeH+Wz77m/79ZCb9/6Uq7/+rWtIfzxw86AFUw3T7zOn089aWn3crKbwtT0iIef78OStMPwwzoAt8+vSJeVF/r/duDZlr98XZ/98UYPl/Ulzo857cnB1nuTn/LefleTChrc3u27dvjOh6sRoIw48fP+abGR3ZfZqL5dc5Fsb/pxkZ/i/i472zfPFivd+/f+PUhzPZyMjIfLIvKdv5lUfg258/IMUMDGKMDAKqqqo/WVhYGHACXDad2LIl6jg/3/dTQCWLRIRvrVFTuXaFm/n/cl31Ey9fvuTCpQ+r4N6FC1NPsLH9ARm2jo/32Y4tWwxePH8uttnD8ehzec7/U2IjWv/8+UNcGO5esiTsBAvLnzNMDP+PsjP/XDxlSghM88ePH4UPhHuefqTF+23dsqVGBA08deiQ/iFOji9nmRn/X+Rg+j85Pm7i9+/fUZLGh/fvpc/72txfrKe4F+h1FpwGfvnyhWmlqsrJ82yM/68Cw2qFvualp0+fimBzxZP7963umih96y0pDvj37x92A1fPmuVwTUnm3w0h9v/XJLn/7N261QNXwIPwhW1b6hYoiB9+9OgRC9Zk8/ryJUt+EwNGPiVphn8Swj8NLS3P4ysV9Dy8urQ8fXk2rlihgbX4+svJ+Y7PxJCB31if4ZucwntWVtYf+AxkZGT8odLUnvvzxQtVkLfh4rAC9sSxY8I/N606psPFrLSHT7opNK+glYmJiVDxxfDjxw8WDg6OP1gT9t27d/nPnDql9fPnTzZ84YcPw11ILQAANFSl+WXVtCYAAAAASUVORK5CYII=' /></a>" + "</td>" + "<td>" + "<span class='dsf dsf_weapon_name_" + id + "'>" + item[0].Name + "</td>" + "<td>" + "<span class='dsf dsf_weapon_skill_" + id + "'>" + skill[0].Name + "</td>" + "<td>" + "<span class='dsf dsf_weapon_damage_" + id + "'>" + item[0].Damage + "</td>" + "<td>" + "<span class='dsf dsf_weapon_range_" + id + "'>" + item[0].Range + "</td>" + "<td>" + "<span class='dsf dsf_weapon_crit_" + id + "'>" + item[0].Crit + "</td>" + "<td>" + "<span class='dsf dsf_weapon_special_" + id + "'>" + qualities.join(", ") + "</td>" + "</tr>"); $(".dsf_weapon_name_" + id).parents("tr").find("a").click(function () { ffsw_aor_removeTableListItem(this,ffsw_aor_options.containerId); }); } }); var totalXP = ffsw_aor_calculateValueFromObject(e.Character.Experience.ExperienceRanks); var usedXP = parseInt(e.Character.Experience.UsedExperience); $(".dsf_earned_xp").text(totalXP); $(".dsf_unspent_xp").text(totalXP - usedXP); $(".ffsw_aor_motivations_container .ffsw_aor_motivation_list ul").html(""); if ($.isArray(e.Character.Motivations.CharMotivation)) { $.each(e.Character.Motivations.CharMotivation, function (index, motivation) { var id = $(".ffsw_aor_motivations_container .ffsw_aor_motivation_list ul li").length; var item = motivation; if ($.isArray(motivation)) { item = motivation[0]; } $(".ffsw_aor_motivations_container .ffsw_aor_motivation_list ul").append( "<li>" + "<div><span>Type: </span><span class='dsf dsf_motivation_type_" + (id + 1) + "'>" + item.Name + "</span>" + "<a href='javascript:void(0);' title='Delete Motivation'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAB3RJTUUH3wgeATEhJPwS7AAAAAlwSFlzAAAK8AAACvABQqw0mAAAAx9JREFUeNpj/P//PwM1ARNVTQMCFhjj9o0bem9vXCtiY2JiE9c3nCctL78PKPyPkP6P7965PDh71vvSmdP3fDIyJzGCvHzx7FlNpc/vznJ//8L5/+Uzhr8vnv4/zyOyUSchLZubh+cZNp+9fvo05M3mzY0Pz51h2/PtR3tITs5KMzOzz2AD7965w3Ng5vTJ4SrSMRyf3rD8f3Kf4f/jOwz3/nE8Zm2fFaasqXkCZtKvnz9Vr86aNZ197x77xZ8+z7QuLGx1dXN7zs7ODlEAMhCEv379yrRiwQLjFeH+Wz77m/79ZCb9/6Uq7/+rWtIfzxw86AFUw3T7zOn089aWn3crKbwtT0iIef78OStMPwwzoAt8+vSJeVF/r/duDZlr98XZ/98UYPl/Ulzo857cnB1nuTn/LefleTChrc3u27dvjOh6sRoIw48fP+abGR3ZfZqL5dc5Fsb/pxkZ/i/i472zfPFivd+/f+PUhzPZyMjIfLIvKdv5lUfg258/IMUMDGKMDAKqqqo/WVhYGHACXDad2LIl6jg/3/dTQCWLRIRvrVFTuXaFm/n/cl31Ey9fvuTCpQ+r4N6FC1NPsLH9ARm2jo/32Y4tWwxePH8uttnD8ehzec7/U2IjWv/8+UNcGO5esiTsBAvLnzNMDP+PsjP/XDxlSghM88ePH4UPhHuefqTF+23dsqVGBA08deiQ/iFOji9nmRn/X+Rg+j85Pm7i9+/fUZLGh/fvpc/72txfrKe4F+h1FpwGfvnyhWmlqsrJ82yM/68Cw2qFvualp0+fimBzxZP7963umih96y0pDvj37x92A1fPmuVwTUnm3w0h9v/XJLn/7N261QNXwIPwhW1b6hYoiB9+9OgRC9Zk8/ryJUt+EwNGPiVphn8Swj8NLS3P4ysV9Dy8urQ8fXk2rlihgbX4+svJ+Y7PxJCB31if4ZucwntWVtYf+AxkZGT8odLUnvvzxQtVkLfh4rAC9sSxY8I/N606psPFrLSHT7opNK+glYmJiVDxxfDjxw8WDg6OP1gT9t27d/nPnDql9fPnTzZ84YcPw11ILQAANFSl+WXVtCYAAAAASUVORK5CYII=' /></a>" + "</div>" + "<div><span>Notes: </span><span class='dsf dsf_motivation_notes_" + (id + 1) + "'>" + item.Notes + "</span></div>" + "</li>"); $(".dsf_motivation_type_" + (id + 1)).parent().find("a").click(function () { ffsw_aor_removeListItem(this,ffsw_aor_options.containerId); }); }); } else { var id = $(".ffsw_aor_motivations_container .ffsw_aor_motivation_list ul li").length; var item = e.Character.Motivations.CharMotivation; if(typeof item != "undefined") { $(".ffsw_aor_motivations_container .ffsw_aor_motivation_list ul").append( "<li>" + "<div><span>Type: </span><span class='dsf dsf_motivation_type_" + (id + 1) + "'>" + item.Name + "</span>" + "<a href='javascript:void(0);' title='Delete Motivation'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAB3RJTUUH3wgeATEhJPwS7AAAAAlwSFlzAAAK8AAACvABQqw0mAAAAx9JREFUeNpj/P//PwM1ARNVTQMCFhjj9o0bem9vXCtiY2JiE9c3nCctL78PKPyPkP6P7965PDh71vvSmdP3fDIyJzGCvHzx7FlNpc/vznJ//8L5/+Uzhr8vnv4/zyOyUSchLZubh+cZNp+9fvo05M3mzY0Pz51h2/PtR3tITs5KMzOzz2AD7965w3Ng5vTJ4SrSMRyf3rD8f3Kf4f/jOwz3/nE8Zm2fFaasqXkCZtKvnz9Vr86aNZ197x77xZ8+z7QuLGx1dXN7zs7ODlEAMhCEv379yrRiwQLjFeH+Wz77m/79ZCb9/6Uq7/+rWtIfzxw86AFUw3T7zOn089aWn3crKbwtT0iIef78OStMPwwzoAt8+vSJeVF/r/duDZlr98XZ/98UYPl/Ulzo857cnB1nuTn/LefleTChrc3u27dvjOh6sRoIw48fP+abGR3ZfZqL5dc5Fsb/pxkZ/i/i472zfPFivd+/f+PUhzPZyMjIfLIvKdv5lUfg258/IMUMDGKMDAKqqqo/WVhYGHACXDad2LIl6jg/3/dTQCWLRIRvrVFTuXaFm/n/cl31Ey9fvuTCpQ+r4N6FC1NPsLH9ARm2jo/32Y4tWwxePH8uttnD8ehzec7/U2IjWv/8+UNcGO5esiTsBAvLnzNMDP+PsjP/XDxlSghM88ePH4UPhHuefqTF+23dsqVGBA08deiQ/iFOji9nmRn/X+Rg+j85Pm7i9+/fUZLGh/fvpc/72txfrKe4F+h1FpwGfvnyhWmlqsrJ82yM/68Cw2qFvualp0+fimBzxZP7963umih96y0pDvj37x92A1fPmuVwTUnm3w0h9v/XJLn/7N261QNXwIPwhW1b6hYoiB9+9OgRC9Zk8/ryJUt+EwNGPiVphn8Swj8NLS3P4ysV9Dy8urQ8fXk2rlihgbX4+svJ+Y7PxJCB31if4ZucwntWVtYf+AxkZGT8odLUnvvzxQtVkLfh4rAC9sSxY8I/N606psPFrLSHT7opNK+glYmJiVDxxfDjxw8WDg6OP1gT9t27d/nPnDql9fPnTzZ84YcPw11ILQAANFSl+WXVtCYAAAAASUVORK5CYII=' /></a>" + "</div>" + "<div><span>Notes: </span><span class='dsf dsf_motivation_notes_" + (id + 1) + "'>" + item.Notes + "</span></div>" + "</li>"); $(".dsf_motivation_type_" + (id + 1)).parent().find("a").click(function () { ffsw_aor_removeListItem(this,ffsw_aor_options.containerId); }); } } $(".ffsw_aor_obligations_container .ffsw_aor_obligation_list ul").html(""); if ($.isArray(e.Character.Obligations.CharObligation)) { $.each(e.Character.Obligations.CharObligation, function (index, obligation) { var id = $(".ffsw_aor_obligations_container .ffsw_aor_obligation_list ul li").length; var item = obligation; if ($.isArray(obligation)) { item = obligation[0]; } $(".ffsw_aor_obligations_container .ffsw_aor_obligation_list ul").append( "<li>" + "<div><span>Type: </span><span class='dsf dsf_obligation_type_" + (id + 1) + "'>" + item.Name + "</span>" + "<a href='javascript:void(0);' title='Delete Obligation'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAB3RJTUUH3wgeATEhJPwS7AAAAAlwSFlzAAAK8AAACvABQqw0mAAAAx9JREFUeNpj/P//PwM1ARNVTQMCFhjj9o0bem9vXCtiY2JiE9c3nCctL78PKPyPkP6P7965PDh71vvSmdP3fDIyJzGCvHzx7FlNpc/vznJ//8L5/+Uzhr8vnv4/zyOyUSchLZubh+cZNp+9fvo05M3mzY0Pz51h2/PtR3tITs5KMzOzz2AD7965w3Ng5vTJ4SrSMRyf3rD8f3Kf4f/jOwz3/nE8Zm2fFaasqXkCZtKvnz9Vr86aNZ197x77xZ8+z7QuLGx1dXN7zs7ODlEAMhCEv379yrRiwQLjFeH+Wz77m/79ZCb9/6Uq7/+rWtIfzxw86AFUw3T7zOn089aWn3crKbwtT0iIef78OStMPwwzoAt8+vSJeVF/r/duDZlr98XZ/98UYPl/Ulzo857cnB1nuTn/LefleTChrc3u27dvjOh6sRoIw48fP+abGR3ZfZqL5dc5Fsb/pxkZ/i/i472zfPFivd+/f+PUhzPZyMjIfLIvKdv5lUfg258/IMUMDGKMDAKqqqo/WVhYGHACXDad2LIl6jg/3/dTQCWLRIRvrVFTuXaFm/n/cl31Ey9fvuTCpQ+r4N6FC1NPsLH9ARm2jo/32Y4tWwxePH8uttnD8ehzec7/U2IjWv/8+UNcGO5esiTsBAvLnzNMDP+PsjP/XDxlSghM88ePH4UPhHuefqTF+23dsqVGBA08deiQ/iFOji9nmRn/X+Rg+j85Pm7i9+/fUZLGh/fvpc/72txfrKe4F+h1FpwGfvnyhWmlqsrJ82yM/68Cw2qFvualp0+fimBzxZP7963umih96y0pDvj37x92A1fPmuVwTUnm3w0h9v/XJLn/7N261QNXwIPwhW1b6hYoiB9+9OgRC9Zk8/ryJUt+EwNGPiVphn8Swj8NLS3P4ysV9Dy8urQ8fXk2rlihgbX4+svJ+Y7PxJCB31if4ZucwntWVtYf+AxkZGT8odLUnvvzxQtVkLfh4rAC9sSxY8I/N606psPFrLSHT7opNK+glYmJiVDxxfDjxw8WDg6OP1gT9t27d/nPnDql9fPnTzZ84YcPw11ILQAANFSl+WXVtCYAAAAASUVORK5CYII=' /></a>" + "</div>" + "<div><span>Magnitude: </span><span class='dsf dsf_obligation_magnitude_" + (id + 1) + "'>" + item.Size + "</span></div>" + "<div><span>Notes: </span><span class='dsf dsf_obligation_notes_" + (id + 1) + "'>" + item.Notes + "</span></div>" + "</li>"); $(".dsf_obligation_type_" + (id + 1)).parent().find("a").click(function () { ffsw_aor_removeListItem(this,ffsw_aor_options.containerId); }); }); } else { var id = $(".ffsw_aor_obligations_container .ffsw_aor_obligation_list ul li").length; var item = e.Character.Obligations.CharObligation; if (typeof item != "undefined") { $(".ffsw_aor_obligations_container .ffsw_aor_obligation_list ul").append( "<li>" + "<div><span>Type: </span><span class='dsf dsf_obligation_type_" + (id + 1) + "'>" + item.Name + "</span>" + "<a href='javascript:void(0);' title='Delete Obligation'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAB3RJTUUH3wgeATEhJPwS7AAAAAlwSFlzAAAK8AAACvABQqw0mAAAAx9JREFUeNpj/P//PwM1ARNVTQMCFhjj9o0bem9vXCtiY2JiE9c3nCctL78PKPyPkP6P7965PDh71vvSmdP3fDIyJzGCvHzx7FlNpc/vznJ//8L5/+Uzhr8vnv4/zyOyUSchLZubh+cZNp+9fvo05M3mzY0Pz51h2/PtR3tITs5KMzOzz2AD7965w3Ng5vTJ4SrSMRyf3rD8f3Kf4f/jOwz3/nE8Zm2fFaasqXkCZtKvnz9Vr86aNZ197x77xZ8+z7QuLGx1dXN7zs7ODlEAMhCEv379yrRiwQLjFeH+Wz77m/79ZCb9/6Uq7/+rWtIfzxw86AFUw3T7zOn089aWn3crKbwtT0iIef78OStMPwwzoAt8+vSJeVF/r/duDZlr98XZ/98UYPl/Ulzo857cnB1nuTn/LefleTChrc3u27dvjOh6sRoIw48fP+abGR3ZfZqL5dc5Fsb/pxkZ/i/i472zfPFivd+/f+PUhzPZyMjIfLIvKdv5lUfg258/IMUMDGKMDAKqqqo/WVhYGHACXDad2LIl6jg/3/dTQCWLRIRvrVFTuXaFm/n/cl31Ey9fvuTCpQ+r4N6FC1NPsLH9ARm2jo/32Y4tWwxePH8uttnD8ehzec7/U2IjWv/8+UNcGO5esiTsBAvLnzNMDP+PsjP/XDxlSghM88ePH4UPhHuefqTF+23dsqVGBA08deiQ/iFOji9nmRn/X+Rg+j85Pm7i9+/fUZLGh/fvpc/72txfrKe4F+h1FpwGfvnyhWmlqsrJ82yM/68Cw2qFvualp0+fimBzxZP7963umih96y0pDvj37x92A1fPmuVwTUnm3w0h9v/XJLn/7N261QNXwIPwhW1b6hYoiB9+9OgRC9Zk8/ryJUt+EwNGPiVphn8Swj8NLS3P4ysV9Dy8urQ8fXk2rlihgbX4+svJ+Y7PxJCB31if4ZucwntWVtYf+AxkZGT8odLUnvvzxQtVkLfh4rAC9sSxY8I/N606psPFrLSHT7opNK+glYmJiVDxxfDjxw8WDg6OP1gT9t27d/nPnDql9fPnTzZ84YcPw11ILQAANFSl+WXVtCYAAAAASUVORK5CYII=' /></a>" + "</div>" + "<div><span>Magnitude: </span><span class='dsf dsf_obligation_magnitude_" + (id + 1) + "'>" + item.Size + "</span></div>" + "<div><span>Notes: </span><span class='dsf dsf_obligation_notes_" + (id + 1) + "'>" + item.Notes + "</span></div>" + "</li>"); $(".dsf_obligation_type_" + (id + 1)).parent().find("a").click(function () { ffsw_aor_removeListItem(this,ffsw_aor_options.containerId); }); } } $(".dsf_gender").text(e.Character.Description.Gender); $(".dsf_age").text(e.Character.Description.Age); $(".dsf_height").text(e.Character.Description.Height); $(".dsf_build").text(e.Character.Description.Build); $(".dsf_hair").text(e.Character.Description.Hair); $(".dsf_eyes").text(e.Character.Description.Eyes); $(".dsf_notable").text(e.Character.Description.OtherFeatures); $(".dsf_credits").text(e.Character.Credits); var armorlist = []; if ($.isArray(e.Character.Armor.CharArmor)) { $.each(e.Character.Armor.CharArmor, function (index, armor) { var item = $.grep(ffsw_aor_armors.Armors.Armor, function (obj) { return obj.Key == armor.ItemKey; }); armorlist.push(item.Name); }); } else { if (e.Character.Armor != "") { var item = $.grep(ffsw_aor_armors.Armors.Armor, function (obj) { return obj.Key == e.Character.Armor.CharArmor.ItemKey; }); armorlist.push(item.Name); } } $(".dsf_weapons_and_armor").text(armorlist.join(", ")); var gearlist = []; if ($.isArray(e.Character.Gear.CharGear)) { $.each(e.Character.Gear.CharGear, function (index, gear) { var item = $.grep(ffsw_aor_gears.Gears.Gear, function (obj) { return obj.Key == gear.ItemKey; }); gearlist.push(item[0].Name); }); } else { if (e.Character.Gear != "") { var item = $.grep(ffsw_aor_gears.Gears.Gear, function (obj) { return obj.Key == e.Character.Gear.CharGear.ItemKey; }); gearlist.push(item.Name); } } $(".dsf_personal_gear").text(gearlist.join(", ")); var specializations = []; $(".talents_container table.talent tbody").html(""); if ($.isArray(e.Character.Specializations.CharSpecialization)) { $.each(e.Character.Specializations.CharSpecialization, function (index, chartalent) { specializations.push(chartalent.Name); $.each(chartalent.Talents.CharTalent, function (index, talentobj) { if (talentobj.Free == "true" || talentobj.Purchased == "true") { var item = $.grep(ffsw_aor_talents.Talents.Talent, function (obj) { return obj.Key == talentobj.Key; }); if (item.length > 0) { var id = $(".talents_container table.talent tbody tr").length; $(".talents_container table.talent tbody").append( "<tr>" + "<td>" + "<a href='javascript:void(0);' title='Delete Talent or Ability'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAB3RJTUUH3wgeATEhJPwS7AAAAAlwSFlzAAAK8AAACvABQqw0mAAAAx9JREFUeNpj/P//PwM1ARNVTQMCFhjj9o0bem9vXCtiY2JiE9c3nCctL78PKPyPkP6P7965PDh71vvSmdP3fDIyJzGCvHzx7FlNpc/vznJ//8L5/+Uzhr8vnv4/zyOyUSchLZubh+cZNp+9fvo05M3mzY0Pz51h2/PtR3tITs5KMzOzz2AD7965w3Ng5vTJ4SrSMRyf3rD8f3Kf4f/jOwz3/nE8Zm2fFaasqXkCZtKvnz9Vr86aNZ197x77xZ8+z7QuLGx1dXN7zs7ODlEAMhCEv379yrRiwQLjFeH+Wz77m/79ZCb9/6Uq7/+rWtIfzxw86AFUw3T7zOn089aWn3crKbwtT0iIef78OStMPwwzoAt8+vSJeVF/r/duDZlr98XZ/98UYPl/Ulzo857cnB1nuTn/LefleTChrc3u27dvjOh6sRoIw48fP+abGR3ZfZqL5dc5Fsb/pxkZ/i/i472zfPFivd+/f+PUhzPZyMjIfLIvKdv5lUfg258/IMUMDGKMDAKqqqo/WVhYGHACXDad2LIl6jg/3/dTQCWLRIRvrVFTuXaFm/n/cl31Ey9fvuTCpQ+r4N6FC1NPsLH9ARm2jo/32Y4tWwxePH8uttnD8ehzec7/U2IjWv/8+UNcGO5esiTsBAvLnzNMDP+PsjP/XDxlSghM88ePH4UPhHuefqTF+23dsqVGBA08deiQ/iFOji9nmRn/X+Rg+j85Pm7i9+/fUZLGh/fvpc/72txfrKe4F+h1FpwGfvnyhWmlqsrJ82yM/68Cw2qFvualp0+fimBzxZP7963umih96y0pDvj37x92A1fPmuVwTUnm3w0h9v/XJLn/7N261QNXwIPwhW1b6hYoiB9+9OgRC9Zk8/ryJUt+EwNGPiVphn8Swj8NLS3P4ysV9Dy8urQ8fXk2rlihgbX4+svJ+Y7PxJCB31if4ZucwntWVtYf+AxkZGT8odLUnvvzxQtVkLfh4rAC9sSxY8I/N606psPFrLSHT7opNK+glYmJiVDxxfDjxw8WDg6OP1gT9t27d/nPnDql9fPnTzZ84YcPw11ILQAANFSl+WXVtCYAAAAASUVORK5CYII=' /></a>" + "</td>" + "<td>" + "<span class='dsf dsf_talent_name_" + (id + 1) + "'>" + item[0].Name + "</span></td>" + "<td>" + "<span class='dsf dsf_talent_page_" + (id + 1) + "'></span></td>" + "<td>" + "<span class='dsf dsf_talent_summary_" + (id + 1) + "'>" + item[0].Description + "</span></td>" + "</tr>"); $(".dsf_talent_name_" + (id + 1)).parents("tr").find("a").click(function () { ffsw_aor_removeTableListItem(this,ffsw_aor_options.containerId); }); } } }); }); } else { var chartalent = e.Character.Specializations.CharSpecialization; specializations.push(chartalent.Name); $.each(chartalent.Talents.CharTalent, function (index, talentobj) { if (talentobj.Free == "true" || talentobj.Purchased == "true") { var item = $.grep(ffsw_aor_talents.Talents.Talent, function (obj) { return obj.Key == talentobj.Key; }); if (item.length > 0) { var id = $(".talents_container table.talent tbody tr").length; $(".talents_container table.talent tbody").append( "<tr>" + "<td>" + "<a href='javascript:void(0);' title='Delete Talent or Ability'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAB3RJTUUH3wgeATEhJPwS7AAAAAlwSFlzAAAK8AAACvABQqw0mAAAAx9JREFUeNpj/P//PwM1ARNVTQMCFhjj9o0bem9vXCtiY2JiE9c3nCctL78PKPyPkP6P7965PDh71vvSmdP3fDIyJzGCvHzx7FlNpc/vznJ//8L5/+Uzhr8vnv4/zyOyUSchLZubh+cZNp+9fvo05M3mzY0Pz51h2/PtR3tITs5KMzOzz2AD7965w3Ng5vTJ4SrSMRyf3rD8f3Kf4f/jOwz3/nE8Zm2fFaasqXkCZtKvnz9Vr86aNZ197x77xZ8+z7QuLGx1dXN7zs7ODlEAMhCEv379yrRiwQLjFeH+Wz77m/79ZCb9/6Uq7/+rWtIfzxw86AFUw3T7zOn089aWn3crKbwtT0iIef78OStMPwwzoAt8+vSJeVF/r/duDZlr98XZ/98UYPl/Ulzo857cnB1nuTn/LefleTChrc3u27dvjOh6sRoIw48fP+abGR3ZfZqL5dc5Fsb/pxkZ/i/i472zfPFivd+/f+PUhzPZyMjIfLIvKdv5lUfg258/IMUMDGKMDAKqqqo/WVhYGHACXDad2LIl6jg/3/dTQCWLRIRvrVFTuXaFm/n/cl31Ey9fvuTCpQ+r4N6FC1NPsLH9ARm2jo/32Y4tWwxePH8uttnD8ehzec7/U2IjWv/8+UNcGO5esiTsBAvLnzNMDP+PsjP/XDxlSghM88ePH4UPhHuefqTF+23dsqVGBA08deiQ/iFOji9nmRn/X+Rg+j85Pm7i9+/fUZLGh/fvpc/72txfrKe4F+h1FpwGfvnyhWmlqsrJ82yM/68Cw2qFvualp0+fimBzxZP7963umih96y0pDvj37x92A1fPmuVwTUnm3w0h9v/XJLn/7N261QNXwIPwhW1b6hYoiB9+9OgRC9Zk8/ryJUt+EwNGPiVphn8Swj8NLS3P4ysV9Dy8urQ8fXk2rlihgbX4+svJ+Y7PxJCB31if4ZucwntWVtYf+AxkZGT8odLUnvvzxQtVkLfh4rAC9sSxY8I/N606psPFrLSHT7opNK+glYmJiVDxxfDjxw8WDg6OP1gT9t27d/nPnDql9fPnTzZ84YcPw11ILQAANFSl+WXVtCYAAAAASUVORK5CYII=' /></a>" + "</td>" + "<td>" + "<span class='dsf dsf_talent_name_" + (id + 1) + "'>" + item[0].Name + "</span></td>" + "<td>" + "<span class='dsf dsf_talent_page_" + (id + 1) + "'></span></td>" + "<td>" + "<span class='dsf dsf_talent_summary_" + (id + 1) + "'>" + item[0].Description + "</span></td>" + "</tr>"); $(".dsf_talent_name_" + (id + 1)).parents("tr").find("a").click(function () { ffsw_aor_removeTableListItem(this,ffsw_aor_options.containerId); }); } } }); } $(".dsf_specializations").text(specializations.join(", ")); $(".skills .tr").each(function () { var key = $(this).attr("key"); var stat_key = $(this).attr("stat"); var rank_raw = $(".dsf_skills_" + key + "_rank").text(); var rank = isNaN(rank_raw) | rank_raw == "" ? 0 : parseInt(rank_raw, 10); var stat_raw = $("[key='" + stat_key + "'] .dsf").text(); var stat = isNaN(stat_raw) | stat_raw == "" ? 0 : parseInt(stat_raw, 10); var green = stat > rank ? stat - rank : rank - stat; var yellow = stat > rank ? rank : stat; $(".dice_pool_" + key).html(""); for (i = 0; i < green; i++) { $(".dice_pool_" + key).append('<li class="green"></li>'); } for (i = 0; i < yellow; i++) { $(".dice_pool_" + key).append('<li class="yellow"></li>'); } }); aisleten.characters.bindAllFields("ffsw_aor", ffsw_aor_options.containerId); } // Calculates value from child objects function ffsw_aor_calculateValueFromObject(e) { var rank = 0; $.each(e, function (key, value) { var subrank = isNaN(value) || value == "" ? 0 : parseInt(value, 10); rank += subrank; }); return rank; } // Tab switching function function ffsw_aor_tabClick(oTab,sPageClass){ // Abort if already on the selected tab var oPage = ffsw_aor_getElementsByClassName('page_' + sPageClass)[0]; if (oPage.style.display != 'none') return; // Set the length of the shorter page to match the longer page var oPages = ffsw_aor_getElementsByClassName('main'); var iHeight = 0; for (var i = 0; i < oPages.length; i++){ if (oPages[i].offsetHeight > iHeight) iHeight = oPages[i].offsetHeight; } for (var n = 0; n < oPages.length; n++){ oPages[n].style.minHeight = (iHeight - 140) + 'px'; } // Show the proper pages and tabs if (sPageClass == 'sheet'){ oTab.parentNode.style.backgroundImage = "url(http://db4sgowjqfwig.cloudfront.net/campaigns/139262/assets/608245/switch2.png)"; ffsw_aor_getElementsByClassName('page_sheet')[0].style.display = 'block'; ffsw_aor_getElementsByClassName('page_bio')[0].style.display = 'none'; } else{ oTab.parentNode.style.backgroundImage = "url(http://db4sgowjqfwig.cloudfront.net/campaigns/139262/assets/608244/switch1.png)"; ffsw_aor_getElementsByClassName('page_bio')[0].style.display = 'block'; ffsw_aor_getElementsByClassName('page_sheet')[0].style.display = 'none'; } } /////////////////////////////////////////////////// // General Utility Functions ////////////////////// /////////////////////////////////////////////////// // Global Storage ffsw_aor_context = {}; // Gets an array of elements with a particular class from the context function ffsw_aor_getElementsByClassName(sClassName,sElementType){ // Provide default element type if (!sElementType) sElementType = 'div'; var aList = new Array(); var aDivs = ffsw_aor_context.getElementsByTagName(sElementType); for (var i = 0; i < aDivs.length; i++){ if (aDivs[i].className.match(sClassName)) aList[aList.length] = aDivs[i]; } return aList; } // Called immediately after the script fills the Span fields with data, before ateamtable attachement function ffsw_aor_dataPostLoad(opts){ // Store global context for search by class name ffsw_aor_context = document.getElementById(opts['containerId']); }
Submit Notes
First Draft of a modified version of a sheet created by BlueEyedFireDragon
Back
I'm sorry, but we no longer support this web browser. Please
upgrade your browser
or install
Chrome
or
Firefox
to enjoy the full functionality of this site.