Starts the content area of a page.
168350
@Override
	public void startContent(ChainWriter out, WebSiteRequest req, HttpServletResponse resp, int[] contentColumnSpans, int preferredWidth) {
		out.print("<table cellpadding='0' cellspacing='0'");
		if(preferredWidth!=-1) out.print(" width='").print(preferredWidth).print('\'');
		out.print(">\n"
				+ "  <tr>\n");
		int totalColumns=0;
		for(int c=0;c<contentColumnSpans.length;c++) {
			if(c>0) totalColumns++;
			totalColumns+=contentColumnSpans[c];
		}
		out.print("    <td");
		if(totalColumns!=1) out.print(" colspan='").print(totalColumns).print('\'');
		out.print("><hr /></td>\n"
				+ "  </tr>\n");
	}
589417
final public void beginLightArea(WebSiteRequest req, HttpServletResponse resp, ChainWriter out) throws IOException {
		beginLightArea(req, resp, out, null, false);
	}
520089
function renderLayout( pageElement, areaHelper, layoutInfo ) {
         addClass( pageElement, layoutInfo.className );
         pageElement.innerHTML = layoutInfo.html;

         const areas = findWidgetAreas( pageElement );
         const deregisterFuncs = Object.keys( areas )
            .map( areaName => areaHelper.register( areaName, areas[ areaName ] ) );

         DEFAULT_AREAS.forEach( area => {
            if( areaHelper.exists( area.name ) ) {
               return;
            }

            const node = document.createElement( 'div' );
            if( area.hidden ) {
               node.style.display = 'none';
            }
            deregisterFuncs.push( areaHelper.register( area.name, node, area.name ) );
            pageElement.appendChild( node );
         } );

         return () => {
            deregisterFuncs.forEach( func => func() );
            removeClass( pageElement, layoutInfo.className );
         };
      }
755457
protected void setContentStart(String contentStart) {
        if (contentStart == null) {
            contentStart = StringUtils.EMPTY;
        }
        this.contentStart = contentStart;
    }
760618
protected void handleStartPage(final String name, final String pseudoPage, final Locator locator) {
        getDocumentHandler().startPage(name, pseudoPage, locator);
    }
577444
public void startPart(String contentType, String[] headers) throws IOException {
        if (inPart)
            out.write(__CRLF);
        out.write(__DASHDASH);
        out.write(boundary);
        out.write(__CRLF);
        out.write("Content-Type: ");
        out.write(contentType);
        out.write(__CRLF);
        for (int i = 0; headers != null && i < headers.length; i++) {
            out.write(headers[i]);
            out.write(__CRLF);
        }
        out.write(__CRLF);
        inPart = true;
    }
955982
protected void updateContentSize() {

        // The scrolling should be done by the CmsScrollPanel and not by the text area,
        // so we try to make the text area itself as big as its content here.

        int offsetHeight = m_textArea.getOffsetHeight();
        int origRows = m_textArea.getVisibleLines();
        // sanity check: don't do anything, if the measured height doesn't make any sense, e.g. if element is not attached
        if (offsetHeight > 5) {
            int scrollPosition = m_textAreaContainer.getVerticalScrollPosition();
            Element textareaElem = m_textArea.getElement();
            int rows = Math.max(0, m_defaultRows - 1); // we add 1 to it later, and the sum should be at least 1 and at least the default row number
            int scrollHeight;
            int prevOffsetHeight = -1;
            do {
                rows += 1;
                m_textArea.setVisibleLines(rows);
                scrollHeight = textareaElem.getScrollHeight();
                offsetHeight = textareaElem.getOffsetHeight();
                if (offsetHeight <= prevOffsetHeight) {
                    // Increasing the number of rows should normally increase the offset height.
                    // If it doesn't, e.g. because of CSS rules limiting the text area height, there is no point in continuing with the loop
                    break;
                }
                prevOffsetHeight = offsetHeight;
            } while (offsetHeight < scrollHeight);
            m_textAreaContainer.setVerticalScrollPosition(scrollPosition);
            if (origRows != rows) {
                m_textAreaContainer.onResizeDescendant();
            }
        }
    }
857631
function setEbookStartPoint() {
		$_option = $this->getSlug();
		$options = get_option( 'pressbooks_theme_options_' . $_option, $this->defaults );

		$struct = \Pressbooks\Book::getBookStructure();

		foreach ( $struct['front-matter'] as $k => $v ) {
			if ( get_post_meta( $v['ID'], 'pb_ebook_start', true ) ) {
				$options['ebook_start_point'] = $v['ID'];
				break;
			}
		}

		if ( ! isset( $options['ebook_start_point'] ) ) {
			foreach ( $struct['part'] as $key => $value ) {
				foreach ( $value['chapters'] as $k => $v ) {
					if ( get_post_meta( $v['ID'], 'pb_ebook_start', true ) ) {
						$options['ebook_start_point'] = $v['ID'];
						break;
					}
				}
			}
		}

		if ( ! isset( $options['ebook_start_point'] ) ) {
			foreach ( $struct['back-matter'] as $k => $v ) {
				if ( get_post_meta( $v['ID'], 'pb_ebook_start', true ) ) {
					$options['ebook_start_point'] = $v['ID'];
					break;
				}
			}
		}

		update_option( 'pressbooks_theme_options_' . $_option, $options );
	}
769598
protected function beginContent ()
  {
    if (isset($this->tag) && !$this->tag->isContentSet) {
      echo '>';
      $this->tag->isContentSet = true;
    }
  }
1268998
function(content) {
        // AJAX is currently loading
        if (content === true) {
            return;
        }

        // Hide blackout loading message
        if (this.blackout) {
            this.blackout.hideLoader();
        }

        this.fireEvent('showing');

        var body = this.element.find(this.ns('content'));
            body.html(content);

        this.fireEvent('load', [content]);

        // Reveal modal
        this.element.reveal();

        // Resize modal
        if (this.options.fullScreen) {
            body.css('min-height', $(window).height());
        }

        this.fireEvent('shown');
    }
523447
function(e) {
      var t = this,
          sidebar = $('.nm-sb'),
          newWidth = startWidth = sidebar.width(),
          startX = e.pageX;
      function drag(e) {
        newWidth = startWidth + (e.pageX - startX);
        sidebar.css({width:newWidth});
        t.tour.css({left: newWidth + t.handleWidth});
        UI.pageView.centerPage();
      }
      function drop(e) {
        t.handle.removeClass('drag');
        $(document).unbind("mousemove", drag).unbind("mouseup", drop);
        // Simulate click?
        if (newWidth === startWidth) {
          newWidth = startWidth === 0 ? Sidebar.prototype.defaults.width : 0;
        }
        // Auto-close?
        else if (newWidth < 30) {
          newWidth = 0;
        }
        // Set the width, center the page, and persist
        t.sidebar.set('width', newWidth);
        sidebar.css({width: newWidth});
        t.tour.css({left: newWidth + t.handleWidth});
        UI.pageView.centerPage();
      }
      $(document).bind("mousemove", drag).bind("mouseup", drop);
      t.handle.addClass('drag');
      drag(e);
      e.preventDefault();
    }
840848
function () {

            // Note: Controllers are responsible of setting needRedraw.
            if (this.needRedraw) {

                // Create root element for the page
                var page = document.createElement('div');
                page.style.display = 'block';
                page.setAttribute('data-role', 'page');

                // Create, render and add the header
                if (this.header) {
                    var header = document.createElement('div');
                    header.setAttribute('data-role', 'header');
                    this.header.setElement(header);
                    this.header.render();
                    page.appendChild(header);
                }

                // Create the content element
                var content = document.createElement('div');
                content.setAttribute('data-role', 'content');
                content.className = 'content';

                // Render the content
                this.content.setElement(content);
                this.content.render();

                // Make sure content fills the screen to the top/bottom
                // when no header/footer are provided.
                if (!this.header) {
                    content.style.top = '0';
                }
                if (!this.footer) {
                    content.style.bottom = '0';
                }

                page.appendChild(content);

                // Create, render and add the footer
                if (this.footer) {
                    var footer = document.createElement('div');
                    footer.setAttribute('data-role', 'footer');
                    this.footer.setElement(footer);
                    this.footer.render();
                    page.appendChild(footer);
                }

                // Add the page into the DOM.
                if (this.el.firstChild) {
                    this.el.replaceChild(page, this.el.firstChild);
                }
                else {
                    this.el.appendChild(page);
                }
 
                this.needRedraw = false;
            }
        }
795843
def display_page(page)
    load_page(page)

    puts

    start = (page - 1) * Page::LENGTH + 1
    start.upto(start + Page::LENGTH - 1) do |i|
      puts "#{i} - #{Problem[i].title}" unless i >= Problem.total - 9
    end
  end
142064
def addStartTag(contents, startTag):
    '''
        
    '''

    matchObj = DOCTYPE_MATCH.match(contents)
    if matchObj:
        idx = matchObj.end()
    else:
        idx = 0
    return "%s\n%s\n%s" %(contents[:idx], startTag, contents[idx:])
191931
public static <E> Page<E> startPage(int pageNum, int pageSize) {
        return startPage(pageNum, pageSize, DEFAULT_COUNT);
    }
505773
function () /*:Void*/ {

        //set the current page
        this._curPage = this._pages.shift();

        this.fire(this.TEST_PAGE_BEGIN_EVENT, this._curPage);

        //load the frame - destroy history in case there are other iframes that
        //need testing
        this._frame.location.replace(this._curPage);

    }
209233
def _handle_start_area(self, attrs):
        
        self._curr = {
            'attributes': dict(attrs),
            'tags': {},
            'area_id': None
        }
        if attrs.get('id', None) is not None:
            self._curr['area_id'] = int(attrs['id'])
            del self._curr['attributes']['id']