()
73 | testStack.push(Character("a"))
74 | testStack.push(Character("b"))
75 | testStack.push(Character("c"))
76 | testStack.push(Character("d"))
77 | let poppedItem = testStack.pop()
78 | XCTAssert(poppedItem == "d", "Expected d, got \(poppedItem!)")
79 | XCTAssert(testStack.count == 3, "Expected count of 3, got \(testStack.count)")
80 | }
81 |
82 | }
83 |
--------------------------------------------------------------------------------
/SwiftSVGTests/StringSubscriptTests.swift:
--------------------------------------------------------------------------------
1 | //
2 | // StringSubscriptTests.swift
3 | // SwiftSVG
4 | //
5 | //
6 | // Copyright (c) 2017 Michael Choe
7 | // http://www.github.com/mchoe
8 | // http://www.straussmade.com/
9 | // http://www.twitter.com/_mchoe
10 | //
11 | // Permission is hereby granted, free of charge, to any person obtaining a copy
12 | // of this software and associated documentation files (the "Software"), to deal
13 | // in the Software without restriction, including without limitation the rights
14 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15 | // copies of the Software, and to permit persons to whom the Software is
16 | // furnished to do so, subject to the following conditions:
17 | //
18 | // The above copyright notice and this permission notice shall be included in
19 | // all copies or substantial portions of the Software.
20 | //
21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
27 | // THE SOFTWARE.
28 |
29 |
30 |
31 | import XCTest
32 |
33 | class StringSubscriptTests: XCTestCase {
34 |
35 | func testIntegerRange() {
36 |
37 | let testString = "1234567890"
38 |
39 | XCTAssertTrue(testString[0..<3] == "123", "Expected \"123\", got \(testString[0..<2])")
40 | XCTAssertTrue(testString[3..<7] == "4567", "Expected \"4567\", got \(testString[3..<7])")
41 |
42 | }
43 |
44 | }
45 |
--------------------------------------------------------------------------------
/SwiftSVGTests/TestShapeElement.swift:
--------------------------------------------------------------------------------
1 | //
2 | // TestShapeElement.swift
3 | // SwiftSVGTests
4 | //
5 | // Copyright (c) 2017 Michael Choe
6 | // http://www.github.com/mchoe
7 | // http://www.straussmade.com/
8 | // http://www.twitter.com/_mchoe
9 | //
10 | // Permission is hereby granted, free of charge, to any person obtaining a copy
11 | // of this software and associated documentation files (the "Software"), to deal
12 | // in the Software without restriction, including without limitation the rights
13 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | // copies of the Software, and to permit persons to whom the Software is
15 | // furnished to do so, subject to the following conditions:
16 | //
17 | // The above copyright notice and this permission notice shall be included in
18 | // all copies or substantial portions of the Software.
19 | //
20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
26 | // THE SOFTWARE.
27 |
28 | import UIKit
29 |
30 | struct TestShapeElement: SVGShapeElement {
31 | static let elementName: String = "test"
32 | var supportedAttributes: [String : (String) -> ()] = [:]
33 | var svgLayer = CAShapeLayer()
34 |
35 | init() {
36 | let rectPath = UIBezierPath(rect: CGRect(x: 0, y: 0, width: 200, height: 200))
37 | self.svgLayer.path = rectPath.cgPath
38 | }
39 |
40 | func notReal(string: String) {
41 | return
42 | }
43 |
44 | func didProcessElement(in container: SVGContainerElement?) {
45 | return
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/SwiftSVGTests/VerticalLineToTests.swift:
--------------------------------------------------------------------------------
1 | //
2 | // VerticalLineToTests.swift
3 | // SwiftSVG
4 | //
5 | //
6 | // Copyright (c) 2017 Michael Choe
7 | // http://www.github.com/mchoe
8 | // http://www.straussmade.com/
9 | // http://www.twitter.com/_mchoe
10 | //
11 | // Permission is hereby granted, free of charge, to any person obtaining a copy
12 | // of this software and associated documentation files (the "Software"), to deal
13 | // in the Software without restriction, including without limitation the rights
14 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15 | // copies of the Software, and to permit persons to whom the Software is
16 | // furnished to do so, subject to the following conditions:
17 | //
18 | // The above copyright notice and this permission notice shall be included in
19 | // all copies or substantial portions of the Software.
20 | //
21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
27 | // THE SOFTWARE.
28 |
29 |
30 |
31 | import XCTest
32 |
33 | class VerticalLineToTests: XCTestCase {
34 |
35 | func testAbsoluteVerticalLineTo() {
36 | let testPath = UIBezierPath()
37 | _ = MoveTo(parameters: [10, -20], pathType: .absolute, path: testPath)
38 | _ = VerticalLineTo(parameters: [-128], pathType: .absolute, path: testPath)
39 | let points = testPath.cgPath.points
40 | XCTAssert(points[1].x == 10 && points[1].y == -128, "Expected {10, -128}, got \(points[1])")
41 | }
42 |
43 | func testRelativeVerticalLineTo() {
44 | let testPath = UIBezierPath()
45 | _ = MoveTo(parameters: [10, -20], pathType: .absolute, path: testPath)
46 | _ = VerticalLineTo(parameters: [-128], pathType: .relative, path: testPath)
47 | let points = testPath.cgPath.points
48 | XCTAssert(points[1].x == 10 && points[1].y == -148, "Expected {10, -148}, got \(points[1])")
49 | }
50 |
51 | }
52 |
--------------------------------------------------------------------------------
/docs/CNAME:
--------------------------------------------------------------------------------
1 | swiftsvg.com
--------------------------------------------------------------------------------
/docs/badge.svg:
--------------------------------------------------------------------------------
1 |
29 |
--------------------------------------------------------------------------------
/docs/docsets/SwiftSVG.docset/Contents/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleIdentifier
6 | com.jazzy.swiftsvg
7 | CFBundleName
8 | SwiftSVG
9 | DocSetPlatformFamily
10 | swiftsvg
11 | isDashDocset
12 |
13 | dashIndexFilePath
14 | index.html
15 | isJavaScriptEnabled
16 |
17 | DashDocSetFamily
18 | dashtoc
19 |
20 |
21 |
--------------------------------------------------------------------------------
/docs/docsets/SwiftSVG.docset/Contents/Resources/Documents/CNAME:
--------------------------------------------------------------------------------
1 | swiftsvg.com
--------------------------------------------------------------------------------
/docs/docsets/SwiftSVG.docset/Contents/Resources/Documents/badge.svg:
--------------------------------------------------------------------------------
1 |
29 |
--------------------------------------------------------------------------------
/docs/docsets/SwiftSVG.docset/Contents/Resources/Documents/images/SwiftSVG-Logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mchoe/SwiftSVG/88b9ee086b29019e35f6f49c8e30e5552eb8fa9d/docs/docsets/SwiftSVG.docset/Contents/Resources/Documents/images/SwiftSVG-Logo.png
--------------------------------------------------------------------------------
/docs/docsets/SwiftSVG.docset/Contents/Resources/Documents/images/fistBump.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mchoe/SwiftSVG/88b9ee086b29019e35f6f49c8e30e5552eb8fa9d/docs/docsets/SwiftSVG.docset/Contents/Resources/Documents/images/fistBump.png
--------------------------------------------------------------------------------
/docs/docsets/SwiftSVG.docset/Contents/Resources/Documents/images/pizza.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mchoe/SwiftSVG/88b9ee086b29019e35f6f49c8e30e5552eb8fa9d/docs/docsets/SwiftSVG.docset/Contents/Resources/Documents/images/pizza.png
--------------------------------------------------------------------------------
/docs/docsets/SwiftSVG.docset/Contents/Resources/Documents/images/sockPuppet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mchoe/SwiftSVG/88b9ee086b29019e35f6f49c8e30e5552eb8fa9d/docs/docsets/SwiftSVG.docset/Contents/Resources/Documents/images/sockPuppet.png
--------------------------------------------------------------------------------
/docs/docsets/SwiftSVG.docset/Contents/Resources/Documents/images/svgViewScreenshot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mchoe/SwiftSVG/88b9ee086b29019e35f6f49c8e30e5552eb8fa9d/docs/docsets/SwiftSVG.docset/Contents/Resources/Documents/images/svgViewScreenshot.png
--------------------------------------------------------------------------------
/docs/docsets/SwiftSVG.docset/Contents/Resources/Documents/images/triangle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mchoe/SwiftSVG/88b9ee086b29019e35f6f49c8e30e5552eb8fa9d/docs/docsets/SwiftSVG.docset/Contents/Resources/Documents/images/triangle.png
--------------------------------------------------------------------------------
/docs/docsets/SwiftSVG.docset/Contents/Resources/Documents/img/carat.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mchoe/SwiftSVG/88b9ee086b29019e35f6f49c8e30e5552eb8fa9d/docs/docsets/SwiftSVG.docset/Contents/Resources/Documents/img/carat.png
--------------------------------------------------------------------------------
/docs/docsets/SwiftSVG.docset/Contents/Resources/Documents/img/dash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mchoe/SwiftSVG/88b9ee086b29019e35f6f49c8e30e5552eb8fa9d/docs/docsets/SwiftSVG.docset/Contents/Resources/Documents/img/dash.png
--------------------------------------------------------------------------------
/docs/docsets/SwiftSVG.docset/Contents/Resources/Documents/img/gh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mchoe/SwiftSVG/88b9ee086b29019e35f6f49c8e30e5552eb8fa9d/docs/docsets/SwiftSVG.docset/Contents/Resources/Documents/img/gh.png
--------------------------------------------------------------------------------
/docs/docsets/SwiftSVG.docset/Contents/Resources/Documents/img/spinner.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mchoe/SwiftSVG/88b9ee086b29019e35f6f49c8e30e5552eb8fa9d/docs/docsets/SwiftSVG.docset/Contents/Resources/Documents/img/spinner.gif
--------------------------------------------------------------------------------
/docs/docsets/SwiftSVG.docset/Contents/Resources/Documents/js/jazzy.js:
--------------------------------------------------------------------------------
1 | window.jazzy = {'docset': false}
2 | if (typeof window.dash != 'undefined') {
3 | document.documentElement.className += ' dash'
4 | window.jazzy.docset = true
5 | }
6 | if (navigator.userAgent.match(/xcode/i)) {
7 | document.documentElement.className += ' xcode'
8 | window.jazzy.docset = true
9 | }
10 |
11 | function toggleItem($link, $content) {
12 | var animationDuration = 300;
13 | $link.toggleClass('token-open');
14 | $content.slideToggle(animationDuration);
15 | }
16 |
17 | function itemLinkToContent($link) {
18 | return $link.parent().parent().next();
19 | }
20 |
21 | // On doc load + hash-change, open any targetted item
22 | function openCurrentItemIfClosed() {
23 | if (window.jazzy.docset) {
24 | return;
25 | }
26 | var $link = $(`.token[href="${location.hash}"]`);
27 | $content = itemLinkToContent($link);
28 | if ($content.is(':hidden')) {
29 | toggleItem($link, $content);
30 | }
31 | }
32 |
33 | $(openCurrentItemIfClosed);
34 | $(window).on('hashchange', openCurrentItemIfClosed);
35 |
36 | // On item link ('token') click, toggle its discussion
37 | $('.token').on('click', function(event) {
38 | if (window.jazzy.docset) {
39 | return;
40 | }
41 | var $link = $(this);
42 | toggleItem($link, itemLinkToContent($link));
43 |
44 | // Keeps the document from jumping to the hash.
45 | var href = $link.attr('href');
46 | if (history.pushState) {
47 | history.pushState({}, '', href);
48 | } else {
49 | location.hash = href;
50 | }
51 | event.preventDefault();
52 | });
53 |
54 | // Clicks on links to the current, closed, item need to open the item
55 | $("a:not('.token')").on('click', function() {
56 | if (location == this.href) {
57 | openCurrentItemIfClosed();
58 | }
59 | });
60 |
--------------------------------------------------------------------------------
/docs/docsets/SwiftSVG.docset/Contents/Resources/Documents/js/jazzy.search.js:
--------------------------------------------------------------------------------
1 | $(function(){
2 | var $typeahead = $('[data-typeahead]');
3 | var $form = $typeahead.parents('form');
4 | var searchURL = $form.attr('action');
5 |
6 | function displayTemplate(result) {
7 | return result.name;
8 | }
9 |
10 | function suggestionTemplate(result) {
11 | var t = '';
12 | t += '' + result.name + '';
13 | if (result.parent_name) {
14 | t += '' + result.parent_name + '';
15 | }
16 | t += '
';
17 | return t;
18 | }
19 |
20 | $typeahead.one('focus', function() {
21 | $form.addClass('loading');
22 |
23 | $.getJSON(searchURL).then(function(searchData) {
24 | const searchIndex = lunr(function() {
25 | this.ref('url');
26 | this.field('name');
27 | this.field('abstract');
28 | for (const [url, doc] of Object.entries(searchData)) {
29 | this.add({url: url, name: doc.name, abstract: doc.abstract});
30 | }
31 | });
32 |
33 | $typeahead.typeahead(
34 | {
35 | highlight: true,
36 | minLength: 3,
37 | autoselect: true
38 | },
39 | {
40 | limit: 10,
41 | display: displayTemplate,
42 | templates: { suggestion: suggestionTemplate },
43 | source: function(query, sync) {
44 | const lcSearch = query.toLowerCase();
45 | const results = searchIndex.query(function(q) {
46 | q.term(lcSearch, { boost: 100 });
47 | q.term(lcSearch, {
48 | boost: 10,
49 | wildcard: lunr.Query.wildcard.TRAILING
50 | });
51 | }).map(function(result) {
52 | var doc = searchData[result.ref];
53 | doc.url = result.ref;
54 | return doc;
55 | });
56 | sync(results);
57 | }
58 | }
59 | );
60 | $form.removeClass('loading');
61 | $typeahead.trigger('focus');
62 | });
63 | });
64 |
65 | var baseURL = searchURL.slice(0, -"search.json".length);
66 |
67 | $typeahead.on('typeahead:select', function(e, result) {
68 | window.location = baseURL + result.url;
69 | });
70 | });
71 |
--------------------------------------------------------------------------------
/docs/docsets/SwiftSVG.docset/Contents/Resources/docSet.dsidx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mchoe/SwiftSVG/88b9ee086b29019e35f6f49c8e30e5552eb8fa9d/docs/docsets/SwiftSVG.docset/Contents/Resources/docSet.dsidx
--------------------------------------------------------------------------------
/docs/docsets/SwiftSVG.tgz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mchoe/SwiftSVG/88b9ee086b29019e35f6f49c8e30e5552eb8fa9d/docs/docsets/SwiftSVG.tgz
--------------------------------------------------------------------------------
/docs/images/SwiftSVG-Logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mchoe/SwiftSVG/88b9ee086b29019e35f6f49c8e30e5552eb8fa9d/docs/images/SwiftSVG-Logo.png
--------------------------------------------------------------------------------
/docs/images/fistBump.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mchoe/SwiftSVG/88b9ee086b29019e35f6f49c8e30e5552eb8fa9d/docs/images/fistBump.png
--------------------------------------------------------------------------------
/docs/images/pizza.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mchoe/SwiftSVG/88b9ee086b29019e35f6f49c8e30e5552eb8fa9d/docs/images/pizza.png
--------------------------------------------------------------------------------
/docs/images/sockPuppet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mchoe/SwiftSVG/88b9ee086b29019e35f6f49c8e30e5552eb8fa9d/docs/images/sockPuppet.png
--------------------------------------------------------------------------------
/docs/images/svgViewScreenshot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mchoe/SwiftSVG/88b9ee086b29019e35f6f49c8e30e5552eb8fa9d/docs/images/svgViewScreenshot.png
--------------------------------------------------------------------------------
/docs/images/triangle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mchoe/SwiftSVG/88b9ee086b29019e35f6f49c8e30e5552eb8fa9d/docs/images/triangle.png
--------------------------------------------------------------------------------
/docs/img/carat.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mchoe/SwiftSVG/88b9ee086b29019e35f6f49c8e30e5552eb8fa9d/docs/img/carat.png
--------------------------------------------------------------------------------
/docs/img/dash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mchoe/SwiftSVG/88b9ee086b29019e35f6f49c8e30e5552eb8fa9d/docs/img/dash.png
--------------------------------------------------------------------------------
/docs/img/gh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mchoe/SwiftSVG/88b9ee086b29019e35f6f49c8e30e5552eb8fa9d/docs/img/gh.png
--------------------------------------------------------------------------------
/docs/img/spinner.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mchoe/SwiftSVG/88b9ee086b29019e35f6f49c8e30e5552eb8fa9d/docs/img/spinner.gif
--------------------------------------------------------------------------------
/docs/js/jazzy.js:
--------------------------------------------------------------------------------
1 | window.jazzy = {'docset': false}
2 | if (typeof window.dash != 'undefined') {
3 | document.documentElement.className += ' dash'
4 | window.jazzy.docset = true
5 | }
6 | if (navigator.userAgent.match(/xcode/i)) {
7 | document.documentElement.className += ' xcode'
8 | window.jazzy.docset = true
9 | }
10 |
11 | function toggleItem($link, $content) {
12 | var animationDuration = 300;
13 | $link.toggleClass('token-open');
14 | $content.slideToggle(animationDuration);
15 | }
16 |
17 | function itemLinkToContent($link) {
18 | return $link.parent().parent().next();
19 | }
20 |
21 | // On doc load + hash-change, open any targetted item
22 | function openCurrentItemIfClosed() {
23 | if (window.jazzy.docset) {
24 | return;
25 | }
26 | var $link = $(`.token[href="${location.hash}"]`);
27 | $content = itemLinkToContent($link);
28 | if ($content.is(':hidden')) {
29 | toggleItem($link, $content);
30 | }
31 | }
32 |
33 | $(openCurrentItemIfClosed);
34 | $(window).on('hashchange', openCurrentItemIfClosed);
35 |
36 | // On item link ('token') click, toggle its discussion
37 | $('.token').on('click', function(event) {
38 | if (window.jazzy.docset) {
39 | return;
40 | }
41 | var $link = $(this);
42 | toggleItem($link, itemLinkToContent($link));
43 |
44 | // Keeps the document from jumping to the hash.
45 | var href = $link.attr('href');
46 | if (history.pushState) {
47 | history.pushState({}, '', href);
48 | } else {
49 | location.hash = href;
50 | }
51 | event.preventDefault();
52 | });
53 |
54 | // Clicks on links to the current, closed, item need to open the item
55 | $("a:not('.token')").on('click', function() {
56 | if (location == this.href) {
57 | openCurrentItemIfClosed();
58 | }
59 | });
60 |
--------------------------------------------------------------------------------
/docs/js/jazzy.search.js:
--------------------------------------------------------------------------------
1 | $(function(){
2 | var $typeahead = $('[data-typeahead]');
3 | var $form = $typeahead.parents('form');
4 | var searchURL = $form.attr('action');
5 |
6 | function displayTemplate(result) {
7 | return result.name;
8 | }
9 |
10 | function suggestionTemplate(result) {
11 | var t = '';
12 | t += '' + result.name + '';
13 | if (result.parent_name) {
14 | t += '' + result.parent_name + '';
15 | }
16 | t += '
';
17 | return t;
18 | }
19 |
20 | $typeahead.one('focus', function() {
21 | $form.addClass('loading');
22 |
23 | $.getJSON(searchURL).then(function(searchData) {
24 | const searchIndex = lunr(function() {
25 | this.ref('url');
26 | this.field('name');
27 | this.field('abstract');
28 | for (const [url, doc] of Object.entries(searchData)) {
29 | this.add({url: url, name: doc.name, abstract: doc.abstract});
30 | }
31 | });
32 |
33 | $typeahead.typeahead(
34 | {
35 | highlight: true,
36 | minLength: 3,
37 | autoselect: true
38 | },
39 | {
40 | limit: 10,
41 | display: displayTemplate,
42 | templates: { suggestion: suggestionTemplate },
43 | source: function(query, sync) {
44 | const lcSearch = query.toLowerCase();
45 | const results = searchIndex.query(function(q) {
46 | q.term(lcSearch, { boost: 100 });
47 | q.term(lcSearch, {
48 | boost: 10,
49 | wildcard: lunr.Query.wildcard.TRAILING
50 | });
51 | }).map(function(result) {
52 | var doc = searchData[result.ref];
53 | doc.url = result.ref;
54 | return doc;
55 | });
56 | sync(results);
57 | }
58 | }
59 | );
60 | $form.removeClass('loading');
61 | $typeahead.trigger('focus');
62 | });
63 | });
64 |
65 | var baseURL = searchURL.slice(0, -"search.json".length);
66 |
67 | $typeahead.on('typeahead:select', function(e, result) {
68 | window.location = baseURL + result.url;
69 | });
70 | });
71 |
--------------------------------------------------------------------------------
/images/SwiftSVG-Logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mchoe/SwiftSVG/88b9ee086b29019e35f6f49c8e30e5552eb8fa9d/images/SwiftSVG-Logo.png
--------------------------------------------------------------------------------
/images/assetCatalog.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mchoe/SwiftSVG/88b9ee086b29019e35f6f49c8e30e5552eb8fa9d/images/assetCatalog.png
--------------------------------------------------------------------------------
/images/cowboyHat.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mchoe/SwiftSVG/88b9ee086b29019e35f6f49c8e30e5552eb8fa9d/images/cowboyHat.png
--------------------------------------------------------------------------------
/images/fistBump.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mchoe/SwiftSVG/88b9ee086b29019e35f6f49c8e30e5552eb8fa9d/images/fistBump.png
--------------------------------------------------------------------------------
/images/hammock.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mchoe/SwiftSVG/88b9ee086b29019e35f6f49c8e30e5552eb8fa9d/images/hammock.png
--------------------------------------------------------------------------------
/images/pizza.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mchoe/SwiftSVG/88b9ee086b29019e35f6f49c8e30e5552eb8fa9d/images/pizza.png
--------------------------------------------------------------------------------
/images/sockPuppet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mchoe/SwiftSVG/88b9ee086b29019e35f6f49c8e30e5552eb8fa9d/images/sockPuppet.png
--------------------------------------------------------------------------------
/images/svgViewScreenshot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mchoe/SwiftSVG/88b9ee086b29019e35f6f49c8e30e5552eb8fa9d/images/svgViewScreenshot.png
--------------------------------------------------------------------------------
/images/tea.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mchoe/SwiftSVG/88b9ee086b29019e35f6f49c8e30e5552eb8fa9d/images/tea.png
--------------------------------------------------------------------------------
/images/triangle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mchoe/SwiftSVG/88b9ee086b29019e35f6f49c8e30e5552eb8fa9d/images/triangle.png
--------------------------------------------------------------------------------