### HTML Structure for Tooltip Viewport Example Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/examples/tooltip-viewport/index.html This HTML sets up the basic structure for the tooltip viewport example, including buttons to trigger tooltip positioning and shift them. ```html Bootstrap 101 Template

Tooltip in body

Moving the tooltip in the body will not be restricted by the viewport.

Tooltip in viewport

Moving the tooltip in the viewport will be restricted by the viewport.

``` -------------------------------- ### Example: Bolted connection using BOLTS Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/blog/posts/2013-12-28-OpenSCAD-positioning.md Demonstrates how to use connectors and the align operation to position and orient BOLTS parts, such as bolts and washers, in a readable and compact manner. This example requires the BOLTS.scad library and custom functions like new_cs, get_dim, show_cs, align, and part-specific connector functions. ```openscad include $fn=50; % cube([10,40,50]); //connectors cube_cs = new_cs(origin = [10,20,20], axes = [[-1,0,0],[0,-1,0]]); washer_cs = ISO7089_conn("top","M4"); bolt_cs = ISO4017_conn("root","M4",20); nut_cs = ISO4035_conn("bottom","M4"); //connectors can be displayed with //show_cs(cube_cs); //thickness of washer s = get_dim(ISO7089_dims("M4"),"s"); //position washer and bolt at the location specified by cube_cs align(washer_cs,cube_cs) ISO7089("M4"); align(bolt_cs,cube_cs,[-s,0,0]) ISO4017("M4",20); align(washer_cs,cube_cs,[10+s,0,0]) ISO7089("M4"); align(nut_cs,cube_cs,[10+s,0,0]) ISO4035("M4"); ``` -------------------------------- ### Install Bootstrap with Bower Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/getting-started/download.html Use Bower to install and manage Bootstrap's Less, CSS, JavaScript, and fonts in your project. Ensure you have Bower installed and configured. ```bash $ bower install bootstrap ``` -------------------------------- ### Example Page Header Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/components/page-header.html A basic example of a page header with a title and subtext. ```html

Example page header Subtext for header

``` -------------------------------- ### Install Grunt CLI Globally Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/getting-started/grunt.html Installs the Grunt command line interface globally on your system. This is a prerequisite for using Grunt commands. ```bash npm install -g grunt-cli ``` -------------------------------- ### Selects with Multiple Options Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/css/forms.html Example of a select dropdown, including how to enable multiple selections. ```html ``` -------------------------------- ### Example Two-Column Layout with Mixins Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/css/grid.html Demonstrates using Bootstrap's Less mixins to create a two-column layout. This example uses the default settings for large devices, creating an 8-column main content area and a 3-column secondary area with a 1-column offset. ```scss .wrapper { .make-row(); } .content-main { .make-lg-column(8); } .content-secondary { .make-lg-column(3); .make-lg-column-offset(1); } ``` ```html ... ... ``` -------------------------------- ### Troubleshoot npm Installation Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/getting-started/grunt.html A common troubleshooting step for installation issues. Deleting the node_modules directory and rerunning npm install can resolve dependency conflicts. ```bash rm -rf node_modules && npm install ``` -------------------------------- ### Basic Dropdown Example Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/components/dropdowns.html This is a basic example of a dropdown menu. It requires the parent element to have `position: relative;` and the dropdown trigger and menu to be wrapped within a `.dropdown` class. ```html ``` -------------------------------- ### Verify OpenSCAD Installation Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/docs/sources/0.4/openscad/installation.md Run this code in OpenSCAD to confirm that BOLTS has been installed correctly. Ensure OpenSCAD is started from the BOLTS directory for local installations or that the library path is configured for global installations. ```openscad include DIN931(); ``` -------------------------------- ### Get Help for bolts.py Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/docs/sources/0.4/general/utility-script.md Displays available subcommands and options for the bolts.py script. ```bash ./bolts.py --help ``` -------------------------------- ### Include and Use OpenSCAD Module Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/docs/sources/0.4/openscad/basemodule.md Example of including the BOLTS.scad library and instantiating a pipe module in OpenSCAD. ```openscad include DIN11850_Range_2("10",1000); ``` -------------------------------- ### Responsive Image Example Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/css/images.html Make images responsive by adding the `.img-responsive` class. This ensures the image scales correctly to its parent container. ```html Responsive image ``` -------------------------------- ### Default Pagination Example Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/components/pagination.html Provides a basic set of pagination links. Use this for standard multi-page navigation in applications or search results. ```html ``` -------------------------------- ### Small Pagination Example Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/components/pagination.html Shows how to use the smaller pagination size with the `.pagination-sm` class. This class reduces the spacing and element sizes for a more compact appearance. ```html ``` -------------------------------- ### Install Local npm Dependencies Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/getting-started/grunt.html Installs all necessary local development dependencies for Bootstrap as defined in package.json. This command should be run from the root of the Bootstrap project directory. ```bash npm install ``` -------------------------------- ### Action Split Button Dropdown Example Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/components/button-dropdowns.html This example shows a split button dropdown with an 'Action' label on the static button. ```html ``` -------------------------------- ### Contextual Colors Example Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/css/helpers.html Demonstrates the use of contextual color classes for emphasis. These classes can be applied to text and links. ```html ... ... ... ... ... ... ``` -------------------------------- ### OpenSCAD Pipe Module Example Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/docs/sources/0.4/openscad/basemodule.md This is an example of an OpenSCAD module that creates a pipe shape using cylinder primitives. It includes standard OpenSCAD comments detailing copyright and licensing information. ```openscad /* Pipe module for OpenSCAD * Copyright (C) 2013 Johannes Reinhardt * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ module pipe(id,od,l){ difference(){ cylinder(r=od/2,h=l,center=true); cylinder(r=id/2,h=l+1,center=true); } } ``` -------------------------------- ### Clearfix Example (HTML and SCSS) Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/css/helpers.html Demonstrates the clearfix utility for clearing floats on parent elements. It can be used as a class or an SCSS mixin. ```html ... ``` ```scss // Mixin itself .clearfix() { &:before, &:after { content: " "; display: table; } &:after { clear: both; } } // Usage as a Mixin .element { .clearfix(); } ``` -------------------------------- ### Media List Example Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/components/media.html Shows how to structure a list of media objects, commonly used for displaying lists of comments or articles. Each list item is a media object. ```html
  • ...

    Media heading

    Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.
    ...

    Nested media heading

    Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.
    ...

    Nested media heading

    Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.
    ...

    Nested media heading

    Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.
  • ...

    Media heading

    Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.
``` -------------------------------- ### Badge Example with Count Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/components/badges.html Demonstrates how to use a badge to display a numerical count, such as unread messages, within a navigation item. ```html
  • 3 Messages
  • ``` -------------------------------- ### Basic Breadcrumb Example Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/components/breadcrumbs.html Illustrates a standard breadcrumb navigation structure. Separators are handled by CSS. ```html 1. Home 1. [Home](#) 2. Library 1. [Home](#) 2. [Library](#) 3. Data {% highlight html %} 1. [Home](#) 2. [Library](#) 3. Data {% endhighlight %} ``` -------------------------------- ### Dropup Toggle Dropdown Example Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/components/button-dropdowns.html This snippet illustrates the basic structure for a dropup dropdown menu. ```html ``` -------------------------------- ### Initialize Modal with Options Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/js/modal.html Activates a modal with custom options. This example disables the keyboard escape key functionality. ```javascript $('#myModal').modal({ keyboard: false }) ``` -------------------------------- ### Button Toolbar Example Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/components/button-groups.html Combine multiple button groups into a button toolbar for more complex components. Use .btn-toolbar to group multiple .btn-group instances. ```html ``` -------------------------------- ### Initialize Collapse with Options Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/js/collapse.html Manually activate a collapsible element with specific options. This example initializes a collapse instance and prevents it from toggling automatically. ```js $('#myCollapsible').collapse({ toggle: false }) ``` -------------------------------- ### Static Modal Example Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/js/modal.html A basic modal structure with a header, body, and footer. This serves as a template for creating custom modals. ```html ×Close #### Modal title One fine body… Close Save changes ``` -------------------------------- ### Basic Button Group Example Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/components/button-groups.html Wrap a series of buttons with the .btn class in a .btn-group to create a basic button group. ```html
    ``` -------------------------------- ### Initializing Carousel via JavaScript Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/js/carousel.html Initialize the carousel plugin with an optional options object and start cycling through items. ```APIDOC ## .carousel(options) ### Description Initializes the carousel with an optional options `object` and starts cycling through items. ### Method JavaScript ### Parameters #### Options - **interval** (number) - default: 5000 - The amount of time to delay between automatically cycling an item. If false, carousel will not automatically cycle. - **pause** (string) - default: "hover" - Pauses the cycling of the carousel on mouseenter and resumes the cycling of the carousel on mouseleave. - **wrap** (boolean) - default: true - Whether the carousel should cycle continuously or have hard stops. ### Request Example ```javascript $('.carousel').carousel({ interval: 2000 }) ``` ``` -------------------------------- ### Default Thumbnail Example Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/components/thumbnails.html Showcases the basic structure for a linked thumbnail image. This is the minimal markup required for a default thumbnail. ```html ... ``` -------------------------------- ### Basic Badge Example Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/components/badges.html Add a badge to a link to highlight new or unread items. The badge will collapse if there are no new items. ```html 42 ``` -------------------------------- ### Modal Structure with Live Demo Content Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/js/modal.html The complete HTML for a modal that can be triggered live. Includes header, body with example content (text, popover, tooltips), and footer. ```html ×Close #### Modal title ... Close Save changes ``` -------------------------------- ### Custom Content Thumbnail Example Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/components/thumbnails.html Demonstrates how to include custom HTML content within a thumbnail. This allows for richer content beyond just images, such as text and buttons. ```html

    Thumbnail label

    Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.

    Button Button

    ``` -------------------------------- ### Showing and Hiding Content Example (HTML and SCSS) Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/css/helpers.html Illustrates classes and mixins for showing and hiding content, including for screen readers. It covers `.show`, `.hidden`, and `.invisible`. ```html ... ... ``` ```scss // Classes .show { display: block !important; } .hidden { display: none !important; visibility: hidden !important; } .invisible { visibility: hidden; } // Usage as mixins .element { .show(); } .another-element { .hidden(); } ``` -------------------------------- ### Quick Floats Example (HTML and SCSS) Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/css/helpers.html Demonstrates how to float elements left or right using utility classes and SCSS mixins. Includes usage as both classes and mixins. ```html ... ... ``` ```scss // Classes .pull-left { float: left !important; } .pull-right { float: right !important; } // Usage as mixins .element { .pull-left(); } .another-element { .pull-right(); } ``` -------------------------------- ### Action Single Button Dropdown Example Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/components/button-dropdowns.html This example demonstrates a functional single button dropdown with an 'Action' label. ```html ``` -------------------------------- ### Contextual Panel Alternatives Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/components/panels.html Demonstrates how to apply contextual state classes to panels for different meanings. ```html ... ... ... ... ... ``` -------------------------------- ### Generic Carousel Example Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/js/carousel.html This is a generic example of a carousel structure. It includes placeholders for images and content within carousel items. ```html {% highlight html %} ![...](...) ... ![...](...) ... ... {% endhighlight %} ``` -------------------------------- ### Build Everything and Run Tests Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/getting-started/grunt.html Performs a comprehensive build including compiling and minifying assets, building the documentation, validating HTML, and regenerating Customizer assets. This command is typically used by developers contributing to Bootstrap itself. ```bash grunt ``` -------------------------------- ### Bootstrap Project Structure Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/README.md Illustrates the directory and file structure of the Bootstrap framework download. Includes compiled CSS, JS, and font files. ```bash bootstrap/ ├── css/ │ ├── bootstrap.css │ ├── bootstrap.min.css │ ├── bootstrap-theme.css │ └── bootstrap-theme.min.css ├── js/ │ ├── bootstrap.js │ └── bootstrap.min.js └── fonts/ ├── glyphicons-halflings-regular.eot ├── glyphicons-halflings-regular.svg ├── glyphicons-halflings-regular.ttf └── glyphicons-halflings-regular.woff ``` -------------------------------- ### Example: Bolted Connection Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/docs/sources/0.4/openscad/usage.md Demonstrates how to create a bolted connection using BOLTS library components. It defines a target connector on a cube and then aligns a washer, bolt, another washer, and a nut to this target connector using their respective BOLTS part connector functions. ```openscad include $fn=50; % cube([10,40,50]); //target connector cube_cs = new_cs(origin = [10,20,20], axes = [[-1,0,0],[0,-1,0]]); //BOLTS part connectors washer_cs = ISO7089_conn("top","M4"); bolt_cs = ISO4017_conn("root","M4",20); nut_cs = ISO4035_conn("bottom","M4"); //connectors can be displayed with //show_cs(cube_cs); //thickness of washer s = get_dim(ISO7089_dims("M4"),"s"); //position washer and bolt at the location specified by cube_cs align(washer_cs,cube_cs) ISO7089("M4"); align(bolt_cs,cube_cs,[-s,0,0]) ISO4017("M4",20); align(washer_cs,cube_cs,[10+s,0,0]) ISO7089("M4"); align(nut_cs,cube_cs,[10+s,0,0]) ISO4035("M4"); ``` -------------------------------- ### Basic Form Example Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/css/forms.html A standard form with text, password, and file inputs, along with help text and a submit button. Labels and controls are wrapped in .form-group for spacing. ```html

    Example block-level help text here.

    ``` -------------------------------- ### Default Media Object Example Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/components/media.html Demonstrates a basic media object with an image floated to the left of textual content. This is useful for displaying avatars or thumbnails next to descriptions. ```html
    ...

    Media heading

    Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
    ``` -------------------------------- ### Sample Output Formatting Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/css/code.html Use the `` tag to denote sample output from a computer program. This helps differentiate program output from regular text. ```html ``` -------------------------------- ### Description List Example Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/css/type.html Standard HTML description list for defining terms and their descriptions. ```html ... ... ``` -------------------------------- ### Python 2.7 Dict Comprehension Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/blog/posts/2013-11-11-Python-2.6.md This is an example of dict comprehension syntax specific to Python 2.7. ```python a = { k:[] for k in range(10) } ``` -------------------------------- ### Bootstrap Grid: Column Wrapping Example Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/css/grid.html Demonstrates how columns wrap to a new line when the total number of columns in a row exceeds 12. Each group of extra columns wraps as a single unit. ```html .col-xs-9 .col-xs-4 Since 9 + 4 = 13 > 12, this 4-column-wide div gets wrapped onto a new line as one contiguous unit. .col-xs-6 Subsequent columns continue along the new line. ``` -------------------------------- ### Small Modal Content Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/js/modal.html Example content for a small modal, suitable for brief confirmations or simple messages. ```html ×Close #### Small modal ... ``` -------------------------------- ### Large Modal Content Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/js/modal.html Example content for a large modal, typically used for more extensive information or forms. ```html ×Close #### Large modal ... ``` -------------------------------- ### Column Sizing for Inputs Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/css/forms.html Illustrates how to wrap inputs in grid columns or custom parent elements to enforce specific widths. ```html ``` -------------------------------- ### Carousel with Optional Captions Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/js/carousel.html Example demonstrating how to add captions to carousel slides using the `.carousel-caption` element. ```html {% highlight html %} ![...](...) ### ... ... {% endhighlight %} ``` -------------------------------- ### Center Content Blocks Example (HTML and SCSS) Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/css/helpers.html Shows how to center block-level content using the `.center-block` class or SCSS mixin. It sets display to block and uses margins for centering. ```html ... ``` ```scss // Classes .center-block { display: block; margin-left: auto; margin-right: auto; } // Usage as mixins .element { .center-block(); } ``` -------------------------------- ### Stacked-to-Horizontal Grid Layout Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/css/grid.html Demonstrates how to create a basic grid system that stacks on mobile and tablet devices and becomes horizontal on desktop devices using `.col-md-*` classes. ```html
    .col-md-1
    .col-md-1
    .col-md-1
    .col-md-1
    .col-md-1
    .col-md-1
    .col-md-1
    .col-md-1
    .col-md-1
    .col-md-1
    .col-md-1
    .col-md-1
    .col-md-8
    .col-md-4
    .col-md-4
    .col-md-4
    .col-md-4
    .col-md-6
    .col-md-6
    ``` -------------------------------- ### Handle Carousel Slide Event Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/js/carousel.html Example of how to hook into the 'slide.bs.carousel' event, which fires immediately when the slide method is invoked. ```js $('#myCarousel').on('slide.bs.carousel', function () { // do something… }) ``` -------------------------------- ### Close Icon Example Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/css/helpers.html Provides the HTML for a generic close icon, commonly used for dismissing modals and alerts. ```html ×Close ``` -------------------------------- ### Dismissible Popover Example Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/js/popovers.html Configure a popover to be dismissed on the next click by using the 'focus' trigger. This is useful for interactive elements. ```html Dismissible popover ``` ```js $('.popover-dismiss').popover({ trigger: 'focus' }) ``` -------------------------------- ### Caret Example Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/css/helpers.html Illustrates the use of carets to indicate dropdown functionality and direction. The default caret reverses in dropup menus. ```html ``` -------------------------------- ### Large Pagination Example Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/components/pagination.html Demonstrates the larger pagination size using the `.pagination-lg` class. Apply this class to the `
      ` element for increased spacing and larger click targets. ```html ``` -------------------------------- ### BLT File Parameter Descriptions Example Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/blog/posts/2014-01-08-Parameter-descriptions.md This YAML snippet demonstrates how to define descriptions for part parameters within a BLT file. The 'description' key under 'parameters' maps parameter names to their human-readable explanations. ```yaml - id: hexagonthinnut1 naming: template: Hexagon thin nut %s - %s substitute: [standard, key] description: hexagon thin nuts standard: [ISO4035, DINENISO4035] replaces: DIN439B parameters: free: [key] types: {key: Table Index} defaults: {key: M3} description: key: Thread designation d1: hole diameter s: width across flats e_min: head diameter m_max: thickness tables: index: key columns: [d1, s, m_max, e_min] data: #key [ d1 s m_max e_min ] M1.6: [ 1.6, 3.2, 1, 3.48, ] M1.7: [ 1.7, 3.2, 1, 3.48, ] M2: [ 2, 4, 1.2, 4.32, ] M2.3: [ 2.3, 4.5, 1.2, 5.2, ] M2.5: [ 2.5, 5, 1.6, 5.45, ] ``` -------------------------------- ### Affix via JavaScript with Offset Options Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/js/affix.html Manually initialize the affix plugin using JavaScript. Configure the offset by providing a number for both top and bottom, or an object with specific top and bottom values. A function can be used for dynamic offset calculation. ```js $('#my-affix').affix({ offset: { top: 100, bottom: function () { return (this.bottom = $('.footer').outerHeight(true)) } } }) ``` -------------------------------- ### Initialize Bootstrap Buttons via JavaScript Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/js/buttons.html Enable all buttons on the page using the `.button()` method. ```js {% highlight js %} $('.btn').button() {% endhighlight %} ``` -------------------------------- ### Fixed Top Navbar Example Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/static/source/bootstrap-3.2.0/docs/_includes/components/navbar.html Implement a fixed-to-top navbar by adding the `.navbar-fixed-top` class. Include a container to center and pad the content. Note that body padding is required to prevent content overlay. ```html ... ``` -------------------------------- ### Switch Branches Source: https://github.com/boltsparts/bolts_archive/blob/master/backends/website/docs/sources/0.4/general/development.md Use this command to navigate between different branches in your local repository. ```bash git checkout branchname ```