{{#Name=Display URL Content}} {{#Description=Displays website via an iframe}} {{#Version=1.0}} {{#Author=KSumwalt/HomeSeer}} {{#CanBeDeleted=False}} {{#SaveList=save_title_size,save_title_color,save_title_bold}} {{includefileraw Dashboards/Cards/Custom/Common/CommonHeader.html}} {{#get settings that will also be used in the autogenerate settings dialog. This fills the arrays above}} {{sections[index]="Website"}} {{site_link=get_value 'save_site_link' '' 'URL to Embed' 'text'}} {{sections[index]="Title"}} {{display_text=get_value 'save_display_text' 'Change Me' 'Name' 'text'}} {{title_size=get_value 'save_title_size' '18' 'Size' 'text'}} {{title_color=get_value 'save_title_color' '#000000' 'Color' 'color'}} {{title_bold=get_value 'save_title_bold' 'on' 'Bold' 'toggle'}} {{sections[index]="iFrame Settings"}} {{iframe_radius=get_value 'save_iframe_radius' '1' 'Corner Radius' 'text'}} {{scale_content=get_value 'save_scale_content' 'off' 'Scale Content' 'toggle'}} {{scale_factor=get_value 'save_scale_factor' '0.8' 'Scale Amount' 'text'}} {{iframe_width_int = iframe_width | string.to_float }} {{iframe_padding = iframe_height | string.to_float | math.divided_by iframe_width_int | math.times 100 | math.round 2}} {{# normal display HTML is here. This is what is displayed when viewing the card in non-edit mode}}
{{display_text}}
{{if scale_content=='on'}} {{else}} {{end}}
{{#if we are not in edit mode, don't bother including the edit mode content}} {{if dbs.edit_mode}} {{# card settings dialog, the second tab autogenerates settings based on values added to the settings arrays. Custom settings HTML can be added}} {{#this dialog has 2 tabs, one for formatting the card, the other for card content}} {{# w=widget class, dashboard=dashboard name, d=device}}
{{includefileraw Dashboards/Cards/Custom/Common/CommonScript.html}} {{else}} {{end}}