Skip to content

Instantly share code, notes, and snippets.

View Fedenieto90's full-sized avatar

Federico Nieto Fedenieto90

View GitHub Profile
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> <title>Typeform Title</title> <style type="text/css"> html{ margin: 0; height: 100%; overflow: hidden; } iframe{ position: absolute; left:0; right:0; bottom:0; top:0; border:0; } </style> </head> <body> <iframe id="typeform-full" width="100%" height="100%" frameborder="0" src="yourTypeformUrl"></iframe> <script type="text/javascript" src="https://embed.typeform.com/embed.js"></script> </body> </html>
import UIKit
class TypeFormHelper: NSObject {
struct Constants {
static let typeFormUrl = "yourTypeformUrl"
static let formSubmissionHandler = "formSubmitted"
static let TypeForm = "TypeForm"
static let html = "html"
}
import UIKit
import WebKit
class TypeFormVC: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
loadHtml()
}
import UIKit
import WebKit
class TypeFormVC: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
loadHtml()
}
import UIKit
class TypeFormHelper: NSObject {
struct Constants {
static let TypeForm = "TypeForm"
static let html = "html"
}
static func getTypeFormHtml() -> String? {
changeNodeColor(nodeTag: "AR-B")
func changeNodeColor(nodeTag : String) {
let nodeShape = self.svgView.node.nodeBy(tag: nodeTag) as! Shape
nodeShape.fill = Color.red
}
func changeNodeColor(nodeTag : String) {
svgView.node.nodeBy(tag: nodeId)?.onTouchPressed({ (touch) in
//Add an action to execute when specific node was touched
//Change node color
self.changeNodeColor(nodeTag: nodeId)
})
}
<?xml version="1.0" encoding="utf-8"?>
<!-- (c) ammap.com | SVG map of Argentina - High -->
<svg xmlns="http://www.w3.org/2000/svg" xmlns:amcharts="http://amcharts.com/ammap" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
<defs>
<style type="text/css">
.land
{
fill: #CCCCCC;
fill-opacity: 1;
stroke:white;
func addEventToCalendar() {
eventsCalendarManager.presentEventCalendarDetailModal(event: event)
}